fix 用户信息区分厂区名称和编码

This commit is contained in:
2024-11-14 14:30:13 +08:00
parent 51b0d4a7bb
commit 5fd97fbd73
2 changed files with 7 additions and 2 deletions

View File

@@ -49,10 +49,15 @@ public class GainfoCurrentResponse
public DateTime Birthday { get; set; } public DateTime Birthday { get; set; }
/// <summary> /// <summary>
/// 厂区 /// 厂区编码
/// </summary> /// </summary>
public string Factory { get; set; } public string Factory { get; set; }
/// <summary>
/// 厂区名称
/// </summary>
public string FactoryName { get; set; }
/// <summary> /// <summary>
/// 卡类型 /// 卡类型
/// </summary> /// </summary>

View File

@@ -220,7 +220,7 @@ public class GainfoService : IGainfoService
var tenantResult = await _tenantApi.GetTenantByCodeAsync(info.Factory); var tenantResult = await _tenantApi.GetTenantByCodeAsync(info.Factory);
if (tenantResult is { Data: not null }) if (tenantResult is { Data: not null })
{ {
info.Factory = tenantResult.Data.Name; info.FactoryName = tenantResult.Data.Name;
} }
} }
catch (Exception) catch (Exception)