修改简历查询接口

master
xiaochanghai 8 months ago
parent d1c4760a3a
commit 08c93ad8f4
  1. 15
      Model/Tiobon.Web.pdm
  2. 8
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 10
      Tiobon.Core.Model/Base/Ghrh/Ghrh_Resume.Dto.Base.cs
  4. 10
      Tiobon.Core.Model/Models/Ghrh/Ghrh_Resume.cs
  5. 25
      Tiobon.Core.Model/View/Ghrh/Ghrh_Resume.Dto.View.cs
  6. 17
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<?PowerDesigner AppLocale="UTF16" ID="{C294868A-C3F3-41AD-98CC-78B6D4E0CC40}" Label="" LastModificationDate="1729498302" Name="Tiobon" Objects="1866" Symbols="71" Target="Microsoft SQL Server 2008" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.0.0.2613"?>
<?PowerDesigner AppLocale="UTF16" ID="{C294868A-C3F3-41AD-98CC-78B6D4E0CC40}" Label="" LastModificationDate="1729561525" Name="Tiobon" Objects="1861" Symbols="69" Target="Microsoft SQL Server 2008" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.0.0.2613"?>
<!-- do not edit this file -->
<Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@ -33632,10 +33632,10 @@ Ghra_staff_InsureBase
<o:Column Id="o1824">
<a:ObjectID>59CE09CB-F39A-4697-A9B2-03AFF51BD824</a:ObjectID>
<a:Name>求职状态</a:Name>
<a:Code>求职状态</a:Code>
<a:Code>ApplyStatus</a:Code>
<a:CreationDate>1729495619</a:CreationDate>
<a:Creator>Administrator</a:Creator>
<a:ModificationDate>1729496402</a:ModificationDate>
<a:ModificationDate>1729560119</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier>
<a:Comment>求职状态</a:Comment>
<a:DataType>nvarchar(32)</a:DataType>
@ -33643,15 +33643,14 @@ Ghra_staff_InsureBase
</o:Column>
<o:Column Id="o1825">
<a:ObjectID>6EE8F4FC-212B-4A3E-942D-B953511FF226</a:ObjectID>
<a:Name>岗位</a:Name>
<a:Name>岗位ID</a:Name>
<a:Code>TitleId</a:Code>
<a:CreationDate>1729218908</a:CreationDate>
<a:Creator>Administrator</a:Creator>
<a:ModificationDate>1729495764</a:ModificationDate>
<a:ModificationDate>1729561525</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier>
<a:Comment>岗位</a:Comment>
<a:DataType>nvarchar(32)</a:DataType>
<a:Length>32</a:Length>
<a:Comment>岗位ID</a:Comment>
<a:DataType>int</a:DataType>
</o:Column>
<o:Column Id="o1826">
<a:ObjectID>9109D0ED-971C-47D3-9F45-ABA569CC47D0</a:ObjectID>

@ -6020,14 +6020,14 @@
毕业日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.求职状态">
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.ApplyStatus">
<summary>
求职状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.TitleId">
<summary>
岗位
岗位ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeBase.MaritalStatus">
@ -14691,14 +14691,14 @@
毕业日期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.求职状态">
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.ApplyStatus">
<summary>
求职状态
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.TitleId">
<summary>
岗位
岗位ID
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_Resume.MaritalStatus">

@ -94,14 +94,14 @@ namespace Tiobon.Core.Model.Models
/// <summary>
/// 求职状态
/// </summary>
[Display(Name = "求职状态"), Description("求职状态"), MaxLength(32, ErrorMessage = "求职状态 不能超过 32 个字符")]
public string { get; set; }
[Display(Name = "ApplyStatus"), Description("求职状态"), MaxLength(32, ErrorMessage = "求职状态 不能超过 32 个字符")]
public string ApplyStatus { get; set; }
/// <summary>
/// 岗位
/// 岗位ID
/// </summary>
[Display(Name = "TitleId"), Description("岗位"), MaxLength(32, ErrorMessage = "岗位 不能超过 32 个字符")]
public string TitleId { get; set; }
[Display(Name = "TitleId"), Description("岗位ID")]
public int? TitleId { get; set; }
/// <summary>
/// 婚姻状况

@ -96,14 +96,14 @@ namespace Tiobon.Core.Model.Models
/// <summary>
/// 求职状态
/// </summary>
[Display(Name = "求职状态"), Description("求职状态"), MaxLength(32, ErrorMessage = "求职状态 不能超过 32 个字符")]
public string { get; set; }
[Display(Name = "ApplyStatus"), Description("求职状态"), MaxLength(32, ErrorMessage = "求职状态 不能超过 32 个字符")]
public string ApplyStatus { get; set; }
/// <summary>
/// 岗位
/// 岗位ID
/// </summary>
[Display(Name = "TitleId"), Description("岗位"), MaxLength(32, ErrorMessage = "岗位 不能超过 32 个字符")]
public string TitleId { get; set; }
[Display(Name = "TitleId"), Description("岗位ID") ]
public int? TitleId { get; set; }
/// <summary>
/// 婚姻状况

@ -22,13 +22,22 @@ namespace Tiobon.Core.Model.Models;
/// </summary>
public class Ghrh_ResumeDto : Ghrh_Resume
{
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 创建信息
/// </summary>
public string CreateDataInfo { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
public string TitleName { get; set; }
public string GenderLabel { get; set; }
public string EducationLabel { get; set; }
public string NationLabel { get; set; }
public string MaritalStatusLabel { get; set; }
public string PoliticStatusLabel { get; set; }
public string UrgentRelationLabel { get; set; }
/// <summary>
/// 修改信息
/// </summary>
public string UpdateDataInfo { get; set; }
}

@ -8,7 +8,6 @@ using Tiobon.Core.Common;
using Tiobon.Core.Model.ViewModels.Extend;
using Tiobon.Core.Model;
using Tiobon.Core.Common.Helper;
using System.Collections.Generic;
namespace Tiobon.Core.Services;
@ -29,6 +28,22 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
public override async Task<ServicePageResult<Ghrh_ResumeDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true)
{
var result = await base.QueryFilterPage(filter, condition, IsEnable);
var list = result.result.DT_TableDataT1;
var ids = list.Select(x => x.Id).ToList();
var titleIds = list.Where(x => x.TitleId != null).Select(x => x.TitleId.Value).Distinct().ToList();
var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync();
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);
});
return result;
}

Loading…
Cancel
Save