From 5fd97fbd73e9a44870bc330ee4c3ee18bc2a2d7c Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 14 Nov 2024 14:30:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=8C=BA=E5=88=86=E5=8E=82=E5=8C=BA=E5=90=8D=E7=A7=B0=E5=92=8C?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Organization/Response/GainfoCurrentResponse.cs | 7 ++++++- .../Organization/Services/Implements/GainfoService.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Src/Dlhis.Basic/Organization/Response/GainfoCurrentResponse.cs b/Src/Dlhis.Basic/Organization/Response/GainfoCurrentResponse.cs index b2fb54b8..04cd105e 100644 --- a/Src/Dlhis.Basic/Organization/Response/GainfoCurrentResponse.cs +++ b/Src/Dlhis.Basic/Organization/Response/GainfoCurrentResponse.cs @@ -49,10 +49,15 @@ public class GainfoCurrentResponse public DateTime Birthday { get; set; } /// - /// 厂区 + /// 厂区编码 /// public string Factory { get; set; } + /// + /// 厂区名称 + /// + public string FactoryName { get; set; } + /// /// 卡类型 /// diff --git a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs index b76ef920..ad8f6cfa 100644 --- a/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs +++ b/Src/Dlhis.Basic/Organization/Services/Implements/GainfoService.cs @@ -220,7 +220,7 @@ public class GainfoService : IGainfoService var tenantResult = await _tenantApi.GetTenantByCodeAsync(info.Factory); if (tenantResult is { Data: not null }) { - info.Factory = tenantResult.Data.Name; + info.FactoryName = tenantResult.Data.Name; } } catch (Exception)