简历库 补充逻辑调整

master
xiaochanghai 7 months ago
parent a86eab842d
commit f40ea9db7b
  1. 22
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  2. 20
      Tiobon.Core.Model/View/Ghrh/Ghrh_Resume.Dto.View.cs
  3. 46
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  4. 165
      Tiobon.Core/Tiobon.Core.Model.xml
  5. 6
      Tiobon.Core/Tiobon.Core.xml

@ -22234,7 +22234,7 @@
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.EducationLabel">
<summary>
雪梨
学历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.NationLabel">
@ -22352,6 +22352,26 @@
是否可以评估
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.Birthday1">
<summary>
生日
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.HireDeptName">
<summary>
用人部门
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.HireTitleName">
<summary>
用人岗位
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.Interviewer">
<summary>
面试官
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGDto">
<summary>
教育背景(Dto.View1)

@ -48,7 +48,7 @@ public class Ghrh_ResumeDto : Ghrh_Resume
public string GenderLabel { get; set; }
/// <summary>
/// 雪梨
/// 学历
/// </summary>
public string EducationLabel { get; set; }
@ -169,5 +169,23 @@ public class Ghrh_ResumeDto : Ghrh_Resume
/// </summary>
public bool? IsAllowAssess { get; set; }
/// <summary>
/// 生日
/// </summary>
public string Birthday1 { get; set; }
/// <summary>
/// 用人部门
/// </summary>
public string HireDeptName { get; set; }
/// <summary>
/// 用人岗位
/// </summary>
public string HireTitleName { get; set; }
/// <summary>
/// 面试官
/// </summary>
public string Interviewer { get; set; }
}

@ -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);//家庭关系

@ -22217,6 +22217,161 @@
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TitleName">
<summary>
职位
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TitleLabel">
<summary>
职位
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.GenderLabel">
<summary>
性别
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.EducationLabel">
<summary>
学历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.NationLabel">
<summary>
民族
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.MaritalStatusLabel">
<summary>
婚姻状况
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.PoliticStatusLabel">
<summary>
政治面貌
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.CertificateTypeLabel">
<summary>
证照类型
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.RegisteredTypeLabel">
<summary>
户口性质
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.ApplyStatusLabel">
<summary>
求职状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagList">
<summary>
标签
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagIds">
<summary>
标签
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagString">
<summary>
标签
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.EduBG">
<summary>
教育背景
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.WorkExp">
<summary>
工作经历
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.ResumeId">
<summary>
简历ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.OrderNo">
<summary>
面试单号
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.RecommendTime">
<summary>
推荐时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.Round">
<summary>
轮数,初试/复试或者一轮二轮三轮
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.IsPass">
<summary>
是否通过
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.InterviewResult">
<summary>
面试结果
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.IsPassLabel">
<summary>
是否通过
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.OrderStatus">
<summary>
订单状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.StaffId">
<summary>
员工ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.CancelReason">
<summary>
取消原因
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.IsCancel">
<summary>
是否取消
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.IsAllowAssess">
<summary>
是否可以评估
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.Birthday1">
<summary>
生日
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.HireDeptName">
<summary>
用人部门
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.HireTitleName">
<summary>
用人岗位
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.Interviewer">
<summary>
面试官
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGDto">
<summary>
教育背景(Dto.View1)
@ -22247,6 +22402,16 @@
修改信息
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeHomeDto.GenderLabel">
<summary>
性别
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeHomeDto.RelationTypeLabel">
<summary>
关系
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoColumnDto">
<summary>
简历信息栏位(Dto.View1)

@ -1578,6 +1578,12 @@
<param name="filter"></param>
<returns></returns>
</member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeTemplatePreviewController.Index">
<summary>
Index
</summary>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeTrainingController">
<summary>
简历培训记录(Controller)

Loading…
Cancel
Save