Commit 57094941 by 谢海旭

202601月中版本 招聘管理:异常码调整

1 parent 5e9e1ad3
...@@ -538,7 +538,7 @@ public class RecruitmentDemandService { ...@@ -538,7 +538,7 @@ public class RecruitmentDemandService {
RecruitmentDemand currentDemand = recruitmentDemandMapper.selectByPrimaryKey(dto.getId()); RecruitmentDemand currentDemand = recruitmentDemandMapper.selectByPrimaryKey(dto.getId());
if (currentDemand == null) { if (currentDemand == null) {
log.error("招聘需求不存在,id:{}", dto.getId()); log.error("招聘需求不存在,id:{}", dto.getId());
throw new RpcServiceException(DefaultErrorEnum.SERVICE_ERROR, "招聘需求不存在"); throw new RpcServiceException(RpcErrorEnum.BUSINESS_ERROR, "招聘需求不存在");
} }
RecruitmentDemandDTO updateDTO = new RecruitmentDemandDTO(); RecruitmentDemandDTO updateDTO = new RecruitmentDemandDTO();
...@@ -554,7 +554,7 @@ public class RecruitmentDemandService { ...@@ -554,7 +554,7 @@ public class RecruitmentDemandService {
operationType = RecruitmentDemandLogOperationTypeEnum.CONFIRM.getValue(); operationType = RecruitmentDemandLogOperationTypeEnum.CONFIRM.getValue();
} else { } else {
log.error("数据状态已变更 currentStatus:{}", currentStatus); log.error("数据状态已变更 currentStatus:{}", currentStatus);
throw new RpcServiceException(DefaultErrorEnum.SERVICE_ERROR, "需求状态已过期,请确认后重新操作。"); throw new RpcServiceException(RpcErrorEnum.BUSINESS_ERROR, "需求状态已过期,请确认后重新操作。");
} }
} else if (status.compareTo(RecruitmentDemandStatusEnum.COMPLETED.getValue()) == 0) { } else if (status.compareTo(RecruitmentDemandStatusEnum.COMPLETED.getValue()) == 0) {
operationType = RecruitmentDemandLogOperationTypeEnum.FINISH.getValue(); operationType = RecruitmentDemandLogOperationTypeEnum.FINISH.getValue();
...@@ -562,13 +562,13 @@ public class RecruitmentDemandService { ...@@ -562,13 +562,13 @@ public class RecruitmentDemandService {
if (!Objects.equals(currentStatus, RecruitmentDemandStatusEnum.WAIT_HUMAN_CONFIRM.getValue()) if (!Objects.equals(currentStatus, RecruitmentDemandStatusEnum.WAIT_HUMAN_CONFIRM.getValue())
&& !Objects.equals(currentStatus, RecruitmentDemandStatusEnum.WAIT_SUPERVISOR_CONFIRM.getValue())) { && !Objects.equals(currentStatus, RecruitmentDemandStatusEnum.WAIT_SUPERVISOR_CONFIRM.getValue())) {
log.error("数据状态已变更 currentStatus:{}", currentStatus); log.error("数据状态已变更 currentStatus:{}", currentStatus);
throw new RpcServiceException(DefaultErrorEnum.SERVICE_ERROR, "需求状态已过期,请确认后重新操作。"); throw new RpcServiceException(RpcErrorEnum.BUSINESS_ERROR, "需求状态已过期,请确认后重新操作。");
} }
operationType = RecruitmentDemandLogOperationTypeEnum.REJECT.getValue(); operationType = RecruitmentDemandLogOperationTypeEnum.REJECT.getValue();
} else { } else {
log.error("状态值非法 status:{}", status); log.error("状态值非法 status:{}", status);
throw new RpcServiceException(DefaultErrorEnum.SERVICE_ERROR, "状态值非法"); throw new RpcServiceException(RpcErrorEnum.BUSINESS_ERROR, "状态值非法");
} }
updateDTO.setStatus(status); updateDTO.setStatus(status);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!