简历表新增渠道栏位

master
xiaochanghai 7 months ago
parent 11591876e6
commit 85205b6d84
  1. 1362
      Model/Tiobon.Web.pdm
  2. 35
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 18
      Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs
  4. 18
      Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs
  5. 5
      Tiobon.Core.Model/View/Ghrh/Ghrh_Resume.Dto.View.cs
  6. 3
      Tiobon.Core.Services/BASE/BaseServices.cs
  7. 86
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

File diff suppressed because it is too large Load Diff

@ -6960,6 +6960,16 @@
不合适原因
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.RecycledTime">
<summary>
加入回收站时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.Channel">
<summary>
招聘渠道
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.RemarkSz">
<summary>
备注
@ -7030,11 +7040,6 @@
预留字段12
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.RecycledTime">
<summary>
加入回收站时间
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGBase">
<summary>
教育背景 (Dto.Base)
@ -17801,6 +17806,16 @@
不合适原因
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.RecycledTime">
<summary>
加入回收站时间
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.Channel">
<summary>
招聘渠道
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.RemarkSz">
<summary>
备注
@ -17871,11 +17886,6 @@
预留字段12
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.RecycledTime">
<summary>
加入回收站时间
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBG">
<summary>
教育背景 (Model)
@ -22337,6 +22347,11 @@
求职状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.ChannelLabel">
<summary>
渠道
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.TagList">
<summary>
标签

@ -6,7 +6,7 @@
*
* Ver
*
*V0.01 2024/11/13 14:10:31 SimonHsiao
*V0.01 2024/11/26 12:41:03 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
@ -359,6 +359,17 @@ public class Ghrh_ResumeBase
[Display(Name = "FailInterviewReason"), Description("不合适原因"), MaxLength(256, ErrorMessage = "不合适原因 不能超过 256 个字符")]
public string FailInterviewReason { get; set; }
/// <summary>
/// 加入回收站时间
/// </summary>
public DateTime? RecycledTime { get; set; }
/// <summary>
/// 招聘渠道
/// </summary>
[Display(Name = "Channel"), Description("招聘渠道"), MaxLength(32, ErrorMessage = "招聘渠道 不能超过 32 个字符")]
public string Channel { get; set; }
/// <summary>
/// 备注
/// </summary>
@ -439,9 +450,4 @@ public class Ghrh_ResumeBase
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
/// <summary>
/// 加入回收站时间
/// </summary>
public DateTime? RecycledTime { get; set; }
}

@ -6,7 +6,7 @@
*
* Ver
*
*V0.01 2024/11/13 14:10:31 SimonHsiao
*V0.01 2024/11/26 12:41:03 SimonHsiao
*
* Copyright(c) 2024 Tiobon Corporation. All Rights Reserved.
*
@ -360,6 +360,17 @@ public class Ghrh_Resume : BasePoco
[Display(Name = "FailInterviewReason"), Description("不合适原因"), MaxLength(256, ErrorMessage = "不合适原因 不能超过 256 个字符")]
public string FailInterviewReason { get; set; }
/// <summary>
/// 加入回收站时间
/// </summary>
public DateTime? RecycledTime { get; set; }
/// <summary>
/// 招聘渠道
/// </summary>
[Display(Name = "Channel"), Description("招聘渠道"), MaxLength(32, ErrorMessage = "招聘渠道 不能超过 32 个字符")]
public string Channel { get; set; }
/// <summary>
/// 备注
/// </summary>
@ -440,9 +451,4 @@ public class Ghrh_Resume : BasePoco
/// 预留字段12
/// </summary>
public int? ReverseI2 { get; set; }
/// <summary>
/// 加入回收站时间
/// </summary>
public DateTime? RecycledTime { get; set; }
}

@ -84,6 +84,11 @@ public class Ghrh_ResumeDto : Ghrh_Resume
/// </summary>
public string ApplyStatusLabel { get; set; }
/// <summary>
/// 渠道
/// </summary>
public string ChannelLabel { get; set; }
/// <summary>
/// 标签
/// </summary>

@ -1281,6 +1281,9 @@ public class BaseServices<TEntity, TEntityDto, TInsertDto, TEditDto> : IBaseServ
public async Task<string> GetParaLabel(string key, string value)
{
string label = value;
if (value.IsNullOrEmpty())
return null;
var list = await _caching.GetAsync<List<Ghrs_ParaDetail>>(key);
if (list == null || (list != null && !list.Any()))
{

@ -1,4 +1,5 @@
using static Tiobon.Core.Model.Consts;
using Org.BouncyCastle.Utilities;
using static Tiobon.Core.Model.Consts;
namespace Tiobon.Core.Services;
@ -67,7 +68,42 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
_ghrh_HumanRequestServices = ghrh_HumanRequestServices;
}
/// <summary>
/// 字典映射、全称、单位转换等
/// </summary>
/// <param name="view"></param>
private async Task SetLabel(Ghrh_ResumeDto x)
{
if (x != null)
{
x.ResumeId = x.Id;
x.TitleLabel = x.TitleName;
x.GenderLabel = await GetParaLabel("Gender", x.Gender);
x.EducationLabel = await GetParaLabel("EducationalBGLevel", x.Education);
x.NationLabel = await GetParaLabel("A02", x.Nation);
x.MaritalStatusLabel = await GetParaLabel("A03", x.MaritalStatus);
x.PoliticStatusLabel = await GetParaLabel("A04", x.PoliticStatus);
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.ChannelLabel = await GetParaLabel("ResumeApplyStatus", x.Channel);
#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);
x.WorkYears = x.WorkYears ?? 0;
}
}
public override async Task<ServicePageResult<Ghrh_ResumeDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true)
{
var query = Db.Queryable<Ghrh_Resume>();
@ -235,18 +271,8 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
var tags = await _ghrh_ResumeTagServices.QueryDto(x => tagIds.Contains(x.Id));
list.ForEach(async x =>
{
x.ResumeId = x.Id;
if (x.TitleId != null) x.TitleName = titles.Where(o => o.TitleID == x.TitleId).FirstOrDefault()?.TitleName;
x.TitleLabel = x.TitleName;
x.GenderLabel = await GetParaLabel("Gender", x.Gender);
x.EducationLabel = await GetParaLabel("EducationalBGLevel", x.Education);
x.NationLabel = await GetParaLabel("A02", x.Nation);
x.MaritalStatusLabel = await GetParaLabel("A03", x.MaritalStatus);
x.PoliticStatusLabel = await GetParaLabel("A04", x.PoliticStatus);
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);
await SetLabel(x);
x.EduBG = eduBGs.Where(o => x.Id == o.ResumeId).ToList();
x.WorkExp = workExps.Where(o => x.Id == o.ResumeId).ToList();
@ -257,19 +283,8 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
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 计算年龄
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
var order = orders.Where(o => o.ResumeId == x.ResumeId).FirstOrDefault();
if (order != null)
@ -319,15 +334,7 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
list.ForEach(async x =>
{
if (x.TitleId != null) x.TitleName = titles.Where(o => o.TitleID == x.TitleId).FirstOrDefault()?.TitleName;
x.GenderLabel = await GetParaLabel("Gender", x.Gender);
x.EducationLabel = await GetParaLabel("EducationalBGLevel", x.Education);
x.NationLabel = await GetParaLabel("A02", x.Nation);
x.MaritalStatusLabel = await GetParaLabel("A03", x.MaritalStatus);
x.PoliticStatusLabel = await GetParaLabel("A04", x.PoliticStatus);
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);
await SetLabel(x);
x.EduBG = eduBGs.Where(o => x.Id == o.ResumeId).ToList();
x.WorkExp = workExps.Where(o => x.Id == o.ResumeId).ToList();
@ -336,19 +343,6 @@ 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];

Loading…
Cancel
Save