查询简历接口 新增返回标签列表

master
xiaochanghai 8 months ago
parent f515488a73
commit 0e9a22e3b7
  1. 2
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs
  2. 2
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 2
      Tiobon.Core.Model/View/Ghrh/Ghrh_Resume.Dto.View.cs
  4. 22
      Tiobon.Core.Model/View/Ghrh/Ghrh_ResumeEduBG.Dto.View.cs
  5. 21
      Tiobon.Core.Model/View/Ghrh/Ghrh_ResumeWorkExp.Dto.View.cs
  6. 14
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  7. 2
      Tiobon.Core/Tiobon.Core.Model.xml

@ -73,7 +73,7 @@ public class Ghrh_ResumeController : BaseController<IGhrh_ResumeServices, Ghrh_R
[HttpPost("Recovery")] [HttpPost("Recovery")]
public async Task<ServiceResult> Recovery([FromBody] List<long> ids) public async Task<ServiceResult> Recovery([FromBody] List<long> ids)
{ {
bool result = await _service.DeleteById1(ids); bool result = await _service.UpdateStatus(ids, "Recycled");
if (result) if (result)
return ServiceResult.OprateSuccess("回收成功!"); return ServiceResult.OprateSuccess("回收成功!");
return ServiceResult.OprateFailed("回收失败!"); return ServiceResult.OprateFailed("回收失败!");

@ -18532,6 +18532,7 @@
修改信息 修改信息
</summary> </summary>
</member> </member>
<!-- Badly formed XML comment ignored for member "P:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGDto.EndDate1" -->
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoColumnDto"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoColumnDto">
<summary> <summary>
简历信息栏位(Dto.View1) 简历信息栏位(Dto.View1)
@ -18592,6 +18593,7 @@
修改信息 修改信息
</summary> </summary>
</member> </member>
<!-- Badly formed XML comment ignored for member "P:Tiobon.Core.Model.Models.Ghrh_ResumeWorkExpDto.EndDate1" -->
<member name="T:Tiobon.Core.Model.Models.Ghro_DeptDto"> <member name="T:Tiobon.Core.Model.Models.Ghro_DeptDto">
<summary> <summary>
Ghro_Dept(Dto.View) Ghro_Dept(Dto.View)

@ -39,6 +39,8 @@ public class Ghrh_ResumeDto : Ghrh_Resume
public string MaritalStatusLabel { get; set; } public string MaritalStatusLabel { get; set; }
public string PoliticStatusLabel { get; set; } public string PoliticStatusLabel { get; set; }
public string UrgentRelationLabel { get; set; } public string UrgentRelationLabel { get; set; }
public List<string> TagList { get; set; }
public List<Ghrh_ResumeEduBGDto> EduBG { get; set; } public List<Ghrh_ResumeEduBGDto> EduBG { get; set; }
public List<Ghrh_ResumeWorkExpDto> WorkExp { get; set; } public List<Ghrh_ResumeWorkExpDto> WorkExp { get; set; }

@ -22,13 +22,19 @@ namespace Tiobon.Core.Model.Models;
/// </summary> /// </summary>
public class Ghrh_ResumeEduBGDto : Ghrh_ResumeEduBG public class Ghrh_ResumeEduBGDto : Ghrh_ResumeEduBG
{ {
/// <summary> /// <summary>
/// 创建信息 /// 创建信息
/// </summary> /// </summary>
public string CreateDataInfo { get; set; } public string CreateDataInfo { get; set; }
/// <summary> /// <summary>
/// 修改信息 /// 修改信息
/// </summary> /// </summary>
public string UpdateDataInfo { get; set; } public string UpdateDataInfo { get; set; }
public string DegreeLevelLabel { get; set; }
public string BeginDate1 { get; set; }
/// </summary>
public string EndDate1 { get; set; }
} }

@ -22,13 +22,18 @@ namespace Tiobon.Core.Model.Models;
/// </summary> /// </summary>
public class Ghrh_ResumeWorkExpDto : Ghrh_ResumeWorkExp public class Ghrh_ResumeWorkExpDto : Ghrh_ResumeWorkExp
{ {
/// <summary> /// <summary>
/// 创建信息 /// 创建信息
/// </summary> /// </summary>
public string CreateDataInfo { get; set; } public string CreateDataInfo { get; set; }
/// <summary> /// <summary>
/// 修改信息 /// 修改信息
/// </summary> /// </summary>
public string UpdateDataInfo { get; set; } public string UpdateDataInfo { get; set; }
public string BeginDate1 { get; set; }
/// </summary>
public string EndDate1 { get; set; }
} }

@ -42,7 +42,17 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync(); var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync();
var eduBGs = await _ghre_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value)); var eduBGs = await _ghre_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value));
var workExps = await _ghre_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value)); var workExps = await _ghre_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value));
eduBGs.ForEach(async x =>
{
x.DegreeLevelLabel = await GetParaLabel("EducationalBGLevel", x.DegreeLevel);
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
workExps.ForEach(x =>
{
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
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;
@ -55,6 +65,8 @@ 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())
x.TagList = JsonHelper.JsonToObj<List<string>>(x.Tags);
}); });
return result; return result;

@ -18532,6 +18532,7 @@
修改信息 修改信息
</summary> </summary>
</member> </member>
<!-- Badly formed XML comment ignored for member "P:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGDto.EndDate1" -->
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoColumnDto"> <member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeInfoColumnDto">
<summary> <summary>
简历信息栏位(Dto.View1) 简历信息栏位(Dto.View1)
@ -18592,6 +18593,7 @@
修改信息 修改信息
</summary> </summary>
</member> </member>
<!-- Badly formed XML comment ignored for member "P:Tiobon.Core.Model.Models.Ghrh_ResumeWorkExpDto.EndDate1" -->
<member name="T:Tiobon.Core.Model.Models.Ghro_DeptDto"> <member name="T:Tiobon.Core.Model.Models.Ghro_DeptDto">
<summary> <summary>
Ghro_Dept(Dto.View) Ghro_Dept(Dto.View)

Loading…
Cancel
Save