Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
liyuan
byit-myth-job
Commits
4368eecb
Commit
4368eecb
authored
Aug 05, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化节点保存校验逻辑
parent
667eb042
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ApiNodeCheckService.java
...n/src/main/java/com/byit/service/ApiNodeCheckService.java
+1
-1
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+2
-1
ApiNodeCheckServiceImpl.java
...n/java/com/byit/service/impl/ApiNodeCheckServiceImpl.java
+2
-2
No files found.
byit-myth-admin/src/main/java/com/byit/service/ApiNodeCheckService.java
View file @
4368eecb
...
@@ -14,5 +14,5 @@ public interface ApiNodeCheckService {
...
@@ -14,5 +14,5 @@ public interface ApiNodeCheckService {
/**
/**
* 工作流节点校验 删除不在调度上的节点
* 工作流节点校验 删除不在调度上的节点
*/
*/
void
checkFlowNode
();
int
checkFlowNode
();
}
}
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
4368eecb
...
@@ -133,7 +133,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -133,7 +133,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
log
.
debug
(
"生成版本"
);
log
.
debug
(
"生成版本"
);
FlowVersion
flowVersion
=
saveFlowVersion
(
flow
);
FlowVersion
flowVersion
=
saveFlowVersion
(
flow
);
apiNodeCheckService
.
checkFlowNode
();
int
checkFlowNode
=
apiNodeCheckService
.
checkFlowNode
();
log
.
warn
(
"-------删除错误节点{}个--------"
,
checkFlowNode
);
log
.
debug
(
"插件端通过API保存成功!"
);
log
.
debug
(
"插件端通过API保存成功!"
);
}
}
...
...
byit-myth-admin/src/main/java/com/byit/service/impl/ApiNodeCheckServiceImpl.java
View file @
4368eecb
...
@@ -57,8 +57,8 @@ public class ApiNodeCheckServiceImpl implements ApiNodeCheckService {
...
@@ -57,8 +57,8 @@ public class ApiNodeCheckServiceImpl implements ApiNodeCheckService {
* 删除不在调度上的节点
* 删除不在调度上的节点
*/
*/
@Override
@Override
public
void
checkFlowNode
()
{
public
int
checkFlowNode
()
{
nodeService
.
deleteNoForkNode
();
return
nodeService
.
deleteNoForkNode
();
}
}
private
void
getAllInnerNode
(
List
<
Node
>
mainNodes
,
List
<
Node
>
candidateNodes
){
private
void
getAllInnerNode
(
List
<
Node
>
mainNodes
,
List
<
Node
>
candidateNodes
){
...
...
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