|
|
|
@ -1,6 +1,4 @@ |
|
|
|
|
using Microsoft.IdentityModel.Tokens; |
|
|
|
|
using Org.BouncyCastle.Crypto; |
|
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Services; |
|
|
|
|
|
|
|
|
@ -12,6 +10,10 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
private readonly IBaseRepository<Ghrh_Resume> _dal; |
|
|
|
|
private readonly IGhrh_ResumeEduBGServices _ghrh_ResumeEduBGServices; |
|
|
|
|
private readonly IGhrh_ResumeWorkExpServices _ghrh_ResumeWorkExpServices; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// 标签 |
|
|
|
|
/// </summary> |
|
|
|
|
private readonly IGhrh_ResumeTagServices _ghrh_ResumeTagServices; |
|
|
|
|
/// <summary> |
|
|
|
|
/// 家庭关系 |
|
|
|
@ -276,6 +278,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
x.IsPassLabel = order.IsPass == true ? "通过" : "不通过"; |
|
|
|
|
x.InterviewResult = order.InterviewResult; |
|
|
|
|
} |
|
|
|
|
x.Birthday1 = DateTimeHelper.ConvertToDayString(x.Birthday); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
@ -324,6 +327,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
x.UrgentRelationLabel = await GetParaLabel("SocialRelationType", x.UrgentRelation); |
|
|
|
|
x.CertificateTypeLabel = await GetParaLabel("D51", x.CertificateType); |
|
|
|
|
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.WorkExp = workExps.Where(o => x.Id == o.ResumeId).ToList(); |
|
|
|
@ -332,6 +336,19 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins |
|
|
|
|
var tagIds1 = JsonHelper.JsonToObj<List<long>>(x.Tags); |
|
|
|
|
x.TagList = tags.Where(o => tagIds1.Contains(o.Id)).Select(o => o.TagName).ToList(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#region 计算年龄 |
|
|
|
|
if (x.Birthday != null && x.Birthday > DateTime.MinValue) |
|
|
|
|
{ |
|
|
|
|
DateTime birthdate = (DateTime)x.Birthday; |
|
|
|
|
DateTime now = DateTime.Now; |
|
|
|
|
int age = now.Year - birthdate.Year; |
|
|
|
|
if (now.Month < birthdate.Month || (now.Month == birthdate.Month && now.Day < birthdate.Day)) |
|
|
|
|
age--; |
|
|
|
|
x.Age = age; |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
x.Birthday1 = DateTimeHelper.ConvertToDayString(x.Birthday); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return list[0]; |
|
|
|
@ -987,15 +1004,32 @@ END"; |
|
|
|
|
resume.Base.ApplicationTime = DateTime.Now; |
|
|
|
|
if (status == "Submit") |
|
|
|
|
resume.Base.Status = DIC_INTERVIEW_ORDER_STATUS.WaitRecommended; |
|
|
|
|
|
|
|
|
|
resume.Base.ApplyStatus = resume.Base.ApplyStatus ?? "Dimission"; |
|
|
|
|
var entity = await base.QueryById(id); |
|
|
|
|
if (entity != null && entity.Status != DIC_INTERVIEW_ORDER_STATUS.WaitRecommended) |
|
|
|
|
resume.Base.Status = entity.Status; |
|
|
|
|
if (entity != null) |
|
|
|
|
{ |
|
|
|
|
if (entity.Status != DIC_INTERVIEW_ORDER_STATUS.WaitRecommended) |
|
|
|
|
resume.Base.Status = entity.Status; |
|
|
|
|
resume.Base.Tags = entity.Tags; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (resume.Base.Status.IsNullOrEmpty()) |
|
|
|
|
resume.Base.Status = DIC_INTERVIEW_ORDER_STATUS.WaitRecommended; |
|
|
|
|
if (resume.Base.PhotoUrls != null && resume.Base.PhotoUrls.Any()) |
|
|
|
|
resume.Base.PhotoUrl = resume.Base.PhotoUrls[0].RelativePath; |
|
|
|
|
|
|
|
|
|
#region 计算年龄 |
|
|
|
|
if (resume.Base.Birthday != null && resume.Base.Birthday > DateTime.MinValue) |
|
|
|
|
{ |
|
|
|
|
DateTime birthdate = (DateTime)resume.Base.Birthday; |
|
|
|
|
DateTime now = DateTime.Now; |
|
|
|
|
int age = now.Year - birthdate.Year; |
|
|
|
|
if (now.Month < birthdate.Month || (now.Month == birthdate.Month && now.Day < birthdate.Day)) |
|
|
|
|
age--; |
|
|
|
|
resume.Base.Age = age; |
|
|
|
|
} |
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
await base.Update(id, resume.Base); |
|
|
|
|
|
|
|
|
|
await _ghrh_ResumeHomeServices.Delete(x => x.ResumeId != null && x.ResumeId == id);//家庭关系 |
|
|
|
|