fix 用户信息区分厂区名称和编码
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user