Commit 0a6c32ae by 谢海旭

v5.7.1版本 招聘管理

1 parent fa25da5d
...@@ -1797,6 +1797,15 @@ public class RecruitmentDemandService { ...@@ -1797,6 +1797,15 @@ public class RecruitmentDemandService {
record.setUpdatedDate(new Date()); record.setUpdatedDate(new Date());
record.setDeletedFlag(BaseModel.DeletedFlagEnum.N.name()); record.setDeletedFlag(BaseModel.DeletedFlagEnum.N.name());
recruitmentTrialOnboardingMapper.insertSelective(record); recruitmentTrialOnboardingMapper.insertSelective(record);
// 添加招聘需求操作记录(处理类型)
RecruitmentDemandOperationLog operationLog = new RecruitmentDemandOperationLog();
operationLog.setDemandId(dto.getDemandId());
operationLog.setOperationType(RecruitmentDemandLogOperationTypeEnum.PROCESS.getValue());
operationLog.setCreatedBy(dto.getUpdatedBy());
operationLog.setCreatedDate(new Date());
operationLog.setUpdatedBy(dto.getUpdatedBy());
operationLog.setUpdatedDate(new Date());
logMapper.insertSelective(operationLog);
} catch (Exception e) { } catch (Exception e) {
log.error("新增试岗人员异常,demandId:{}", dto.getDemandId(), e); log.error("新增试岗人员异常,demandId:{}", dto.getDemandId(), e);
throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR); throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR);
...@@ -1835,6 +1844,15 @@ public class RecruitmentDemandService { ...@@ -1835,6 +1844,15 @@ public class RecruitmentDemandService {
update.setUpdatedBy(dto.getUpdatedBy()); update.setUpdatedBy(dto.getUpdatedBy());
update.setUpdatedDate(new Date()); update.setUpdatedDate(new Date());
recruitmentTrialOnboardingMapper.updateByPrimaryKeySelective(update); recruitmentTrialOnboardingMapper.updateByPrimaryKeySelective(update);
// 添加招聘需求操作记录(处理类型)
RecruitmentDemandOperationLog operationLog = new RecruitmentDemandOperationLog();
operationLog.setDemandId(dto.getDemandId());
operationLog.setOperationType(RecruitmentDemandLogOperationTypeEnum.PROCESS.getValue());
operationLog.setCreatedBy(dto.getUpdatedBy());
operationLog.setCreatedDate(new Date());
operationLog.setUpdatedBy(dto.getUpdatedBy());
operationLog.setUpdatedDate(new Date());
logMapper.insertSelective(operationLog);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
throw e; throw e;
} catch (Exception e) { } catch (Exception e) {
...@@ -1871,6 +1889,15 @@ public class RecruitmentDemandService { ...@@ -1871,6 +1889,15 @@ public class RecruitmentDemandService {
update.setUpdatedBy(dto.getUpdatedBy()); update.setUpdatedBy(dto.getUpdatedBy());
update.setUpdatedDate(new Date()); update.setUpdatedDate(new Date());
recruitmentTrialOnboardingMapper.updateByPrimaryKeySelective(update); recruitmentTrialOnboardingMapper.updateByPrimaryKeySelective(update);
// 添加招聘需求操作记录(处理类型)
RecruitmentDemandOperationLog operationLog = new RecruitmentDemandOperationLog();
operationLog.setDemandId(dto.getDemandId());
operationLog.setOperationType(RecruitmentDemandLogOperationTypeEnum.PROCESS.getValue());
operationLog.setCreatedBy(dto.getUpdatedBy());
operationLog.setCreatedDate(new Date());
operationLog.setUpdatedBy(dto.getUpdatedBy());
operationLog.setUpdatedDate(new Date());
logMapper.insertSelective(operationLog);
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
throw e; throw e;
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!