|
|
@ -42,7 +42,17 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync(); |
|
|
|
var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync(); |
|
|
|
var eduBGs = await _ghre_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value)); |
|
|
|
var eduBGs = await _ghre_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value)); |
|
|
|
var workExps = await _ghre_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value)); |
|
|
|
var workExps = await _ghre_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value)); |
|
|
|
|
|
|
|
eduBGs.ForEach(async x => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
x.DegreeLevelLabel = await GetParaLabel("EducationalBGLevel", x.DegreeLevel); |
|
|
|
|
|
|
|
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate); |
|
|
|
|
|
|
|
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
workExps.ForEach(x => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate); |
|
|
|
|
|
|
|
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate); |
|
|
|
|
|
|
|
}); |
|
|
|
list.ForEach(async x => |
|
|
|
list.ForEach(async x => |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (x.TitleId != null) x.TitleName = titles.Where(o => o.TitleID == x.TitleId).FirstOrDefault()?.TitleName; |
|
|
|
if (x.TitleId != null) x.TitleName = titles.Where(o => o.TitleID == x.TitleId).FirstOrDefault()?.TitleName; |
|
|
@ -55,6 +65,8 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
|
|
|
|
|
|
|
x.EduBG = eduBGs.Where(o => x.Id == o.ResumeId).ToList(); |
|
|
|
x.EduBG = eduBGs.Where(o => x.Id == o.ResumeId).ToList(); |
|
|
|
x.WorkExp = workExps.Where(o => x.Id == o.ResumeId).ToList(); |
|
|
|
x.WorkExp = workExps.Where(o => x.Id == o.ResumeId).ToList(); |
|
|
|
|
|
|
|
if (x.Tags.IsNotEmptyOrNull()) |
|
|
|
|
|
|
|
x.TagList = JsonHelper.JsonToObj<List<string>>(x.Tags); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
return result; |
|
|
|