Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yx-qc-change-flow
yanxuan-qc-change-system
Commits
a4e5a20a
Commit
a4e5a20a
authored
Dec 14, 2022
by
穆龙飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:修改限制
parent
4d443bd5
Pipeline
#43945
passed with stages
in 1 minute 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+6
-1
ChangeFlowCreateReq.java
...anxuan/change/dal/meta/model/req/ChangeFlowCreateReq.java
+1
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
a4e5a20a
...
@@ -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
);
...
...
yanxuan-qc-change-system-dal/src/main/java/com/netease/mail/yanxuan/change/dal/meta/model/req/ChangeFlowCreateReq.java
View file @
a4e5a20a
...
@@ -117,7 +117,7 @@ public class ChangeFlowCreateReq {
...
@@ -117,7 +117,7 @@ public class ChangeFlowCreateReq {
/**
/**
* 变更结果确认时间
* 变更结果确认时间
*/
*/
@NotNull
(
message
=
"变更结果确认时间不能为空"
)
//
@NotNull(message = "变更结果确认时间不能为空")
private
Long
changeConfirmResultTime
;
private
Long
changeConfirmResultTime
;
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment