|
|
@ -24,15 +24,18 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
private readonly IBaseRepository<Ghrh_Resume> _dal; |
|
|
|
private readonly IBaseRepository<Ghrh_Resume> _dal; |
|
|
|
private readonly IGhrh_ResumeEduBGServices _ghre_ResumeEduBGServices; |
|
|
|
private readonly IGhrh_ResumeEduBGServices _ghre_ResumeEduBGServices; |
|
|
|
private readonly IGhrh_ResumeWorkExpServices _ghre_ResumeWorkExpServices; |
|
|
|
private readonly IGhrh_ResumeWorkExpServices _ghre_ResumeWorkExpServices; |
|
|
|
|
|
|
|
private readonly IGhrh_ResumeTagServices _ghre_ResumeTagServices; |
|
|
|
public Ghrh_ResumeServices(ICaching caching, |
|
|
|
public Ghrh_ResumeServices(ICaching caching, |
|
|
|
IBaseRepository<Ghrh_Resume> dal, |
|
|
|
IBaseRepository<Ghrh_Resume> dal, |
|
|
|
IGhrh_ResumeEduBGServices ghre_ResumeEduBGServices, |
|
|
|
IGhrh_ResumeEduBGServices ghre_ResumeEduBGServices, |
|
|
|
|
|
|
|
IGhrh_ResumeTagServices ghre_ResumeTagServices, |
|
|
|
IGhrh_ResumeWorkExpServices ghre_ResumeWorkExpServices) |
|
|
|
IGhrh_ResumeWorkExpServices ghre_ResumeWorkExpServices) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this._dal = dal; |
|
|
|
this._dal = dal; |
|
|
|
base.BaseDal = dal; |
|
|
|
base.BaseDal = dal; |
|
|
|
base._caching = caching; |
|
|
|
base._caching = caching; |
|
|
|
_ghre_ResumeEduBGServices = ghre_ResumeEduBGServices; |
|
|
|
_ghre_ResumeEduBGServices = ghre_ResumeEduBGServices; |
|
|
|
|
|
|
|
_ghre_ResumeTagServices = ghre_ResumeTagServices; |
|
|
|
_ghre_ResumeWorkExpServices = ghre_ResumeWorkExpServices; |
|
|
|
_ghre_ResumeWorkExpServices = ghre_ResumeWorkExpServices; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -165,6 +168,16 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate); |
|
|
|
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate); |
|
|
|
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate); |
|
|
|
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var tagIds = new List<long>(); |
|
|
|
|
|
|
|
list.ForEach(x => |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (x.Tags.IsNotEmptyOrNull()) |
|
|
|
|
|
|
|
tagIds.AddRange(JsonHelper.JsonToObj<List<long>>(x.Tags)); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tagIds = tagIds.Distinct().ToList(); |
|
|
|
|
|
|
|
var tags = await _ghre_ResumeTagServices.QueryDto(x => tagIds.Contains(x.Id)); |
|
|
|
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; |
|
|
@ -178,7 +191,10 @@ 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()) |
|
|
|
if (x.Tags.IsNotEmptyOrNull()) |
|
|
|
x.TagList = JsonHelper.JsonToObj<List<string>>(x.Tags); |
|
|
|
{ |
|
|
|
|
|
|
|
var tagIds1 = JsonHelper.JsonToObj<List<long>>(x.Tags); |
|
|
|
|
|
|
|
x.TagList = tags.Where(o => tagIds1.Contains(o.Id)).Select(o => o.TagName).ToList(); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
return result; |
|
|
@ -249,7 +265,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
#endregion |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region 添加标签 |
|
|
|
#region 添加标签 |
|
|
|
public async Task<bool> MarkTags(List<long> ids, List<string> tags) |
|
|
|
public async Task<bool> MarkTags(List<long> ids, List<long> tags) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var tag = JsonHelper.ObjToJson(tags); |
|
|
|
var tag = JsonHelper.ObjToJson(tags); |
|
|
|
var result = await Db.Updateable<Ghrh_Resume>() |
|
|
|
var result = await Db.Updateable<Ghrh_Resume>() |
|
|
|