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
胡园园
yanxuan-qc-change-system
Commits
e0158808
Commit
e0158808
authored
Dec 09, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify:工单到期执行时间修改
parent
e7026e77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
ChangeFlowService.java
...se/mail/yanxuan/change/biz/service/ChangeFlowService.java
+3
-2
ChangeFlowServiceImpl.java
...anxuan/change/biz/service/impl/ChangeFlowServiceImpl.java
+3
-2
AutoSubmit.java
.../com/netease/mail/yanxuan/change/biz/task/AutoSubmit.java
+3
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/ChangeFlowService.java
View file @
e0158808
...
@@ -57,8 +57,8 @@ public interface ChangeFlowService {
...
@@ -57,8 +57,8 @@ public interface ChangeFlowService {
* @param entityId
* @param entityId
* @param nodeId1
* @param nodeId1
* @param nodeId2
* @param nodeId2
* @param
current
Time
* @param
tomorrowSpecific
Time
* @return
* @return
*/
*/
List
<
ChangeRecord
>
getByStatusAndTime
(
Long
entityId
,
String
nodeId1
,
String
nodeId2
,
long
current
Time
);
List
<
ChangeRecord
>
getByStatusAndTime
(
Long
entityId
,
String
nodeId1
,
String
nodeId2
,
long
tomorrowSpecific
Time
);
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/ChangeFlowServiceImpl.java
View file @
e0158808
...
@@ -56,7 +56,7 @@ public class ChangeFlowServiceImpl implements ChangeFlowService {
...
@@ -56,7 +56,7 @@ public class ChangeFlowServiceImpl implements ChangeFlowService {
}
}
@Override
@Override
public
List
<
ChangeRecord
>
getByStatusAndTime
(
Long
entityId
,
String
nodeId1
,
String
nodeId2
,
long
current
Time
)
{
public
List
<
ChangeRecord
>
getByStatusAndTime
(
Long
entityId
,
String
nodeId1
,
String
nodeId2
,
long
tomorrowSpecific
Time
)
{
return
changeRecordMapper
.
getByStatusAndTime
(
entityId
,
nodeId1
,
nodeId2
,
current
Time
);
return
changeRecordMapper
.
getByStatusAndTime
(
entityId
,
nodeId1
,
nodeId2
,
tomorrowSpecific
Time
);
}
}
}
}
\ No newline at end of file
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/task/AutoSubmit.java
View file @
e0158808
...
@@ -66,13 +66,15 @@ public class AutoSubmit extends IJobHandler {
...
@@ -66,13 +66,15 @@ public class AutoSubmit extends IJobHandler {
public
ReturnT
<
String
>
execute
(
String
...
strings
)
throws
Exception
{
public
ReturnT
<
String
>
execute
(
String
...
strings
)
throws
Exception
{
log
.
info
(
"AutoSubmit start"
);
log
.
info
(
"AutoSubmit start"
);
long
startTime
=
DateUtils
.
getCurrentTime
();
long
startTime
=
DateUtils
.
getCurrentTime
();
// 处理变更确认时间是今天24点之前的
Long
tomorrowSpecificTime
=
DateUtils
.
getTomorrowSpecificTime
(
"00:00:00"
);
List
<
Long
>
count
=
new
ArrayList
<>();
List
<
Long
>
count
=
new
ArrayList
<>();
Long
entityId
=
0L
;
Long
entityId
=
0L
;
// 查询今天时间之前的数据
// 查询今天时间之前的数据
try
{
try
{
while
(
true
)
{
while
(
true
)
{
List
<
ChangeRecord
>
records
=
changeFlowService
.
getByStatusAndTime
(
entityId
,
ChangeFlowEnum
.
CHANGE_FLOW_EXE
.
getNodeId
(),
List
<
ChangeRecord
>
records
=
changeFlowService
.
getByStatusAndTime
(
entityId
,
ChangeFlowEnum
.
CHANGE_FLOW_EXE
.
getNodeId
(),
ChangeFlowEnum
.
CHANGE_FLOW_CONFIRM
.
getNodeId
(),
start
Time
);
ChangeFlowEnum
.
CHANGE_FLOW_CONFIRM
.
getNodeId
(),
tomorrowSpecific
Time
);
if
(
CollectionUtils
.
isEmpty
(
records
))
{
if
(
CollectionUtils
.
isEmpty
(
records
))
{
break
;
break
;
}
}
...
...
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