Commit 3b3e7c98 by 王志超

fix bug: 同舟不传预计变更切换时间,忽略校验

parent 7ff9bc94
Pipeline #88861 passed with stages
in 1 minute 29 seconds
...@@ -270,10 +270,11 @@ public class ChangeFlowBiz { ...@@ -270,10 +270,11 @@ public class ChangeFlowBiz {
changeExecRecordBiz.validateChangeExecProjectRequiredFields(changeExecProject, !tongzhouCreateSource); changeExecRecordBiz.validateChangeExecProjectRequiredFields(changeExecProject, !tongzhouCreateSource);
// 校验变更行动方案中是否有重复的变更行动人 // 校验变更行动方案中是否有重复的变更行动人
validateDuplicateChangeExecUser(changeExecProject); validateDuplicateChangeExecUser(changeExecProject);
// 结束时间不可晚于第二天定时任务执行时间 // 结束时间不可晚于第二天定时任务执行时间(同舟端不传该字段,不校验)
Long tomorrowSpecificTime = DateUtils.getTomorrowSpecificTime("00:00:00"); Long tomorrowSpecificTime = DateUtils.getTomorrowSpecificTime("00:00:00");
if (changeFlowCreateReq.getChangeConfirmResultTime() == null if (!tongzhouCreateSource
|| changeFlowCreateReq.getChangeConfirmResultTime() < tomorrowSpecificTime) { && (changeFlowCreateReq.getChangeConfirmResultTime() == null
|| changeFlowCreateReq.getChangeConfirmResultTime() < tomorrowSpecificTime)) {
throw ExceptionFactory.createBiz(ResponseCode.BAD_REQUEST, "时间不可晚于下次执行时间"); throw ExceptionFactory.createBiz(ResponseCode.BAD_REQUEST, "时间不可晚于下次执行时间");
} }
// 构建工单内容 // 构建工单内容
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment