fix 用户信息区分厂区名称和编码
This commit is contained in:
@@ -49,10 +49,15 @@ public class GainfoCurrentResponse
|
||||
public DateTime Birthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 厂区
|
||||
/// 厂区编码
|
||||
/// </summary>
|
||||
public string Factory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 厂区名称
|
||||
/// </summary>
|
||||
public string FactoryName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 卡类型
|
||||
/// </summary>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user