Commit a4e5a20a by 穆龙飞

modify:修改限制

parent 4d443bd5
Pipeline #43945 passed with stages
in 1 minute 56 seconds
...@@ -169,7 +169,12 @@ public class ChangeFlowBiz { ...@@ -169,7 +169,12 @@ public class ChangeFlowBiz {
"变更行动方案配置数超限"); "变更行动方案配置数超限");
// 结束时间不可晚于第二天定时任务执行时间 // 结束时间不可晚于第二天定时任务执行时间
Long tomorrowSpecificTime = DateUtils.getTomorrowSpecificTime("09:00:00"); Long tomorrowSpecificTime = DateUtils.getTomorrowSpecificTime("09:00:00");
Assert.isTrue(changeFlowCreateReq.getChangeConfirmResultTime() >= tomorrowSpecificTime, "时间不可晚于下次执行时间"); if (changeFlowCreateReq.getCreateSource() != 2) {
if (changeFlowCreateReq.getChangeConfirmResultTime() == null) {
throw ExceptionFactory.createBiz(ResponseCode.BAD_REQUEST, "变更结果确认时间不能为空");
}
Assert.isTrue(changeFlowCreateReq.getChangeConfirmResultTime() >= tomorrowSpecificTime, "时间不可晚于下次执行时间");
}
Map<String, Object> content = new HashMap<>(10); Map<String, Object> content = new HashMap<>(10);
content.put("createUserName", uid); content.put("createUserName", uid);
content.put("createUser", uid); content.put("createUser", uid);
......
...@@ -117,7 +117,7 @@ public class ChangeFlowCreateReq { ...@@ -117,7 +117,7 @@ public class ChangeFlowCreateReq {
/** /**
* 变更结果确认时间 * 变更结果确认时间
*/ */
@NotNull(message = "变更结果确认时间不能为空") //@NotNull(message = "变更结果确认时间不能为空")
private Long changeConfirmResultTime; private Long changeConfirmResultTime;
/** /**
......
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