fix 档案详情

This commit is contained in:
cheche
2024-01-30 14:53:31 +08:00
parent 025a05a533
commit 0b02a95f66
4 changed files with 8 additions and 8 deletions

View File

@@ -341,9 +341,9 @@ public class GainfoService : IGainfoService
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public async Task<Pagination<GainfoDetailResponse>> GetGainfoDetailTaskAsync(GainfoDetailRequest request)
public async Task<GainfoDetailResponse> GetGainfoDetailTaskAsync(GainfoDetailRequest request)
{
var page = await _gainfoStore.Queryable(request.Status)
var info = await _gainfoStore.Queryable(request.Status)
.LeftJoin<DepartmentEntity>((ga, de) => ga.DepartmentNo == de.No)
.LeftJoin<BasicTypeEntity>((ga,de,type) => ga.Native == type.Code && type.Type == "native")
.LeftJoin<PositionEntity>((ga, de, type,posi) => ga.Position == posi.Name)
@@ -373,8 +373,8 @@ public class GainfoService : IGainfoService
CountryName = type2.Display,
NationName = type3.Display,
IsActive = ga.Employed == "Active" ? true : false,
}).ToPageListAsync(request);
return page;
}).FirstAsync();
return info;
}
//-------------------------------------------help methods ------------------------------------------------