Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0f8cf67d
authored
Sep 22, 2023
by
tiger
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Job Sort
1 parent
d74c1cb7
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/core/SopXxlJobUtil.java
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/impl/SopInstNodeExecuteJobHandler.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopService.java
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/core/SopXxlJobUtil.java
View file @
0f8cf67
...
...
@@ -115,7 +115,8 @@ public class SopXxlJobUtil {
}
int
i
=
0
;
for
(
SopInstNode
node
:
sop
.
getInstNodeMap
().
values
())
{
for
(
Integer
nodeId
:
sop
.
getNodeSort
())
{
SopInstNode
node
=
sop
.
getInstNodeMap
().
get
(
nodeId
);
initSopNodeJob
(
sop
,
node
,
i
++);
}
}
...
...
platform-process/src/main/java/cn/com/glsx/process/job/xxljob/impl/SopInstNodeExecuteJobHandler.java
View file @
0f8cf67
...
...
@@ -152,14 +152,17 @@ public class SopInstNodeExecuteJobHandler {
// 刷新实例批次快照
SopInstBatch
batch
=
sop
.
getBatch
();
if
(
batch
!=
null
)
{
batch
.
setSnapshot
(
snapshot
);
batch
.
setUpdateTime
(
new
Date
());
}
// 刷新实例节点批次快照
SopInstNodeBatch
nodeBatch
=
sop
.
getNodeBatch
();
if
(
nodeBatch
!=
null
)
{
nodeBatch
.
setSnapshot
(
snapshot
);
nodeBatch
.
setUpdateTime
(
new
Date
());
}
sopService
.
updateNodeBatch
(
inst
,
batch
,
nodeBatch
);
}
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopService.java
View file @
0f8cf67
...
...
@@ -182,11 +182,14 @@ public class SopService {
return
curBatch
;
}
public
void
updateNodeBatch
(
SopInst
sopInst
,
SopInstBatch
batch
,
SopInstNodeBatch
nodeBatch
)
{
if
(
nodeBatch
!=
null
)
{
instNodeBatchMapper
.
updateByPrimaryKey
(
nodeBatch
);
}
if
(
batch
!=
null
)
{
instBatchMapper
.
updateByPrimaryKey
(
batch
);
}
instMapper
.
updateByPrimaryKey
(
sopInst
);
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment