|
|
@ -244,6 +244,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
x.UrgentRelationLabel = await GetParaLabel("SocialRelationType", x.UrgentRelation); |
|
|
|
x.UrgentRelationLabel = await GetParaLabel("SocialRelationType", x.UrgentRelation); |
|
|
|
x.CertificateTypeLabel = await GetParaLabel("D51", x.CertificateType); |
|
|
|
x.CertificateTypeLabel = await GetParaLabel("D51", x.CertificateType); |
|
|
|
x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType); |
|
|
|
x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType); |
|
|
|
|
|
|
|
x.ApplyStatusLabel = await GetParaLabel("ResumeApplyStatus", x.ApplyStatus); |
|
|
|
|
|
|
|
|
|
|
|
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(); |
|
|
@ -252,7 +253,9 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
var tagIds1 = JsonHelper.JsonToObj<List<long>>(x.Tags); |
|
|
|
var tagIds1 = JsonHelper.JsonToObj<List<long>>(x.Tags); |
|
|
|
x.TagIds = tagIds1; |
|
|
|
x.TagIds = tagIds1; |
|
|
|
x.TagList = tags.Where(o => tagIds1.Contains(o.Id)).Select(o => o.TagName).ToList(); |
|
|
|
x.TagList = tags.Where(o => tagIds1.Contains(o.Id)).Select(o => o.TagName).ToList(); |
|
|
|
|
|
|
|
x.TagString = string.Join(",", x.TagList); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
x.WorkYears = x.WorkYears ?? 0; |
|
|
|
|
|
|
|
|
|
|
|
#region 计算年龄 |
|
|
|
#region 计算年龄 |
|
|
|
if (x.Birthday != null && x.Birthday > DateTime.MinValue) |
|
|
|
if (x.Birthday != null && x.Birthday > DateTime.MinValue) |
|
|
@ -321,7 +324,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
x.UrgentRelationLabel = await GetParaLabel("SocialRelationType", x.UrgentRelation); |
|
|
|
x.UrgentRelationLabel = await GetParaLabel("SocialRelationType", x.UrgentRelation); |
|
|
|
x.CertificateTypeLabel = await GetParaLabel("D51", x.CertificateType); |
|
|
|
x.CertificateTypeLabel = await GetParaLabel("D51", x.CertificateType); |
|
|
|
x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType); |
|
|
|
x.RegisteredTypeLabel = await GetParaLabel("A08", x.RegisteredType); |
|
|
|
|
|
|
|
|
|
|
|
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()) |
|
|
|
if (x.Tags.IsNotEmptyOrNull()) |
|
|
@ -2235,7 +2238,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1"; |
|
|
|
{ |
|
|
|
{ |
|
|
|
var dt = Db.GetDate().AddDays(-30); |
|
|
|
var dt = Db.GetDate().AddDays(-30); |
|
|
|
|
|
|
|
|
|
|
|
var list = await base.Query(x => x.Status == "Recycled" && x.RecycledTime <= dt); |
|
|
|
var list = await base.Query(x => x.Status == "Recycled" && x.RecycledTime <= dt); |
|
|
|
var ids = list.Select(x => x.Id).ToList(); |
|
|
|
var ids = list.Select(x => x.Id).ToList(); |
|
|
|
if (ids.Any()) |
|
|
|
if (ids.Any()) |
|
|
|
await Db.Updateable<Ghrh_Resume>() |
|
|
|
await Db.Updateable<Ghrh_Resume>() |
|
|
|