fix 添加档案详情idclassname

This commit is contained in:
cheche
2024-02-28 15:52:59 +08:00
parent e3d6f72243
commit a36681bc70
2 changed files with 8 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ public class GainfoDetailResponse
/// </summary> /// </summary>
public string IdClass { get; set; } public string IdClass { get; set; }
/// <summary>
/// 证件类型名称
/// </summary>
public string ClassName { get; set; }
/// <summary> /// <summary>
/// 身份证号 /// 身份证号
/// </summary> /// </summary>

View File

@@ -368,8 +368,9 @@ public class GainfoService : IGainfoService
.LeftJoin<PositionEntity>((ga, de, type, posi) => ga.Position == posi.Name) .LeftJoin<PositionEntity>((ga, de, type, posi) => ga.Position == posi.Name)
.LeftJoin<BasicTypeEntity>((ga, de, type, posi, type2) => ga.CountryNo == type2.Code && type2.Type == "country") .LeftJoin<BasicTypeEntity>((ga, de, type, posi, type2) => ga.CountryNo == type2.Code && type2.Type == "country")
.LeftJoin<BasicTypeEntity>((ga, de, type, posi, type2, type3) => ga.Nation == type3.Code && type3.Type == "nation") .LeftJoin<BasicTypeEntity>((ga, de, type, posi, type2, type3) => ga.Nation == type3.Code && type3.Type == "nation")
.LeftJoin<BasicTypeEntity>((ga, de, type, posi, type2, type3,type4) => ga.IdClass == type4.Code && type4.Type == "cls")
.Where(ga => ga.No == request.No) .Where(ga => ga.No == request.No)
.Select((ga, de, type, posi, type2, type3) => new GainfoDetailResponse .Select((ga, de, type, posi, type2, type3,type4) => new GainfoDetailResponse
{ {
No = ga.No, No = ga.No,
SapNo = ga.SapNo, SapNo = ga.SapNo,
@@ -391,6 +392,7 @@ public class GainfoService : IGainfoService
Marital = ga.Marital, Marital = ga.Marital,
CountryName = type2.Display, CountryName = type2.Display,
NationName = type3.Display, NationName = type3.Display,
ClassName = type4.Display,
}) })
.FirstAsync(); .FirstAsync();