master
xiaochanghai 6 months ago
parent db4d91710a
commit aa875d659a
  1. 2
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_OfferApplyOrderController.cs
  2. 13
      Tiobon.Core.Common/DB/Dapper/Extensions/EntityProperties.cs
  3. 2
      Tiobon.Core.IServices/Ghrh/IGhrh_OfferApplyOrderServices.cs
  4. 29
      Tiobon.Core.Services/Ghrh/Ghrh_OfferApplyOrderServices.cs
  5. 10
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  6. 10
      Tiobon.Core/Tiobon.Core.Model.xml

@ -31,7 +31,7 @@ public class Ghrh_OfferApplyOrderController : BaseController<IGhrh_OfferApplyOrd
/// <param name="entity">简历ID</param>
/// <returns></returns>
[HttpPost, Route("TempAdd/{resumeId}")]
public async Task<long> TempAdd(long resumeId, InsertGhrh_OfferApplyOrderInput entity) => await _service.TempAdd(resumeId, entity);
public async Task<ServiceResult<long>> TempAdd(long resumeId, InsertGhrh_OfferApplyOrderInput entity) => await _service.TempAdd(resumeId, entity);
#endregion
}

@ -6,6 +6,7 @@ using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using Tiobon.Core.Model;
using Tiobon.Core.Model.Models;
namespace Tiobon.Core.Common.DB.Dapper.Extensions;
@ -646,8 +647,20 @@ public static class EntityProperties
return value;
}
public static PropertyInfo[] GetPropertyList<T>(this T t)
{
if (t == null)
return default;
PropertyInfo[] properties = t.GetType().GetProperties(BindingFlags.Instance | BindingFlags.Public);
return properties;
}
//PropertyInfo[] propertyInfo = typeof(Ghrh_OfferApplyOrder).GetProperties().ToArray();
//Dictionary<string, string> dictProperties = propertyInfo.GetColumType(true);
}
public class ArrayEntity

@ -11,5 +11,5 @@ public interface IGhrh_OfferApplyOrderServices : IBaseServices<Ghrh_OfferApplyOr
{
Task<ServiceResult<dynamic>> QueryResume(long resumeId);
Task<long> TempAdd(long resumeId, InsertGhrh_OfferApplyOrderInput entity);
Task<ServiceResult<long>> TempAdd(long resumeId, InsertGhrh_OfferApplyOrderInput entity);
}

@ -1,4 +1,7 @@
namespace Tiobon.Core.Services;
using AgileObjects.AgileMapper.Extensions.Internal;
using NPOI.Util.Collections;
namespace Tiobon.Core.Services;
/// <summary>
/// 录用审批单 (服务)
@ -172,12 +175,13 @@ public class Ghrh_OfferApplyOrderServices : BaseServices<Ghrh_OfferApplyOrder, G
}
public async Task<long> TempAdd(long resumeId, InsertGhrh_OfferApplyOrderInput entity)
public async Task<ServiceResult<long>> TempAdd(long resumeId, InsertGhrh_OfferApplyOrderInput entity)
{
entity.OrderNo = await GenerateContinuousSequence("Ghrh_OfferApplyOrder", "OrderNo", "LYSQ");
entity.ApplicantId = GetStaffId();
entity.ApplyTime = DateTime.Now;
entity.WorkState = 1;
var id = await base.Add(entity);
#region 写入数据,并判断是否有错误
@ -197,7 +201,7 @@ public class Ghrh_OfferApplyOrderServices : BaseServices<Ghrh_OfferApplyOrder, G
await _ghrh_OfferApplyOrderSalaryServices.Add(entity.Items);
}
return id;
return ServiceResult<long>.OprateSuccess("保存成功", id);
}
public override async Task<bool> Update(long Id, EditGhrh_OfferApplyOrderInput editModel)
@ -280,6 +284,25 @@ public class Ghrh_OfferApplyOrderServices : BaseServices<Ghrh_OfferApplyOrder, G
var applyOrder = await base.QuerySingle(x => x.ResumeId == resumeId);
if (applyOrder != null)
{
obj.DeptId = applyOrder.DeptId;
obj.TitleId = applyOrder.TitleId;
obj.Channel = applyOrder.Channel;
obj.StaffName = applyOrder.StaffName;
obj.DeIdCardNoptId = applyOrder.IdCardNo;
obj.InDate = applyOrder.InDate;
obj.StaffType = applyOrder.StaffType;
obj.GradeId = applyOrder.GradeId;
obj.JobId = applyOrder.JobId;
obj.ProbationMonths = applyOrder.ProbationMonths;
obj.ReportId = applyOrder.ReportId;
obj.JobResponsibility = applyOrder.JobResponsibility;
obj.WorkAddress = applyOrder.WorkAddress;
obj.JobProbationSalaryId = applyOrder.ProbationSalary;
obj.ProbationAfterSalary = applyOrder.ProbationAfterSalary;
obj.JobPeriodMasterIdId = applyOrder.PeriodMasterId;
obj.JobId = applyOrder.JobId;
obj.Items = await Db.Queryable<Ghrh_OfferApplyOrderSalary>().Where(x => x.OrderId == applyOrder.Id).ToListAsync();
}

@ -539,6 +539,16 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
}
]";
var tabs = JsonHelper.JsonToObj<List<ResumeViewTab>>(str);
var menus = Db.Ado.SqlQuery<string>(@"SELECT MenuNo
FROM Ghrs_Menu
WHERE ParentMenuId = (SELECT MenuId
FROM Ghrs_Menu
WHERE MenuNo = 'F_ResumeMaintenance')
AND IsEnable = 1");
tabs = tabs.Where(x => menus.Contains(x.MenuName)).ToList();
return ServiceResult<List<ResumeViewTab>>.OprateSuccess("查询成功!", tabs);
}
#endregion

@ -28242,6 +28242,16 @@
面试地点
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.IsAllowChangeDate">
<summary>
是否可以改期
</summary>
</member>
<member name="P:Tiobon.Core.Model.Models.Ghrh_ResumeDto.IsAllowCancel">
<summary>
是否可以取消
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghrh_ResumeEduBGDto">
<summary>
教育背景(Dto.View1)

Loading…
Cancel
Save