|
|
|
@ -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(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|