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
8bd1f7af
Commit
8bd1f7af
authored
Mar 26, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将版本表改为删除标识
parent
28cdd785
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
0 deletions
+29
-0
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+4
-0
FlowVersionMapper.java
...core/src/main/java/com/byit/mapper/FlowVersionMapper.java
+8
-0
NodeVersionMapper.java
...core/src/main/java/com/byit/mapper/NodeVersionMapper.java
+8
-0
FlowVersionMapper.xml
...dmin-core/src/main/resources/mapper/FlowVersionMapper.xml
+5
-0
NodeVersionMapper.xml
...dmin-core/src/main/resources/mapper/NodeVersionMapper.xml
+4
-0
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
8bd1f7af
...
...
@@ -941,8 +941,12 @@ public class ApiFlowServiceImpl implements ApiFlowService {
});
//删除所有的节点
nodeMapper
.
deleteByFlowId
(
flow
.
getFlowId
());
//节点历史添加删除标识
nodeVersionMapper
.
removeByFlowId
(
flow
.
getFlowId
());
}
flowMapper
.
deleteById
(
flow
.
getFlowId
());
//工作流历史添加删除标识
flowVersionMapper
.
removeByFlowId
(
flow
.
getFlowId
());
}
@Override
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/FlowVersionMapper.java
View file @
8bd1f7af
...
...
@@ -17,4 +17,11 @@ public interface FlowVersionMapper {
* @return
*/
FlowVersion
getByFlowIdAndThis
(
Integer
flowId
);
/**
* 将工作流历史修改为删除标识
* @param flowId
* @return
*/
int
removeByFlowId
(
Integer
flowId
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/NodeVersionMapper.java
View file @
8bd1f7af
...
...
@@ -17,4 +17,11 @@ public interface NodeVersionMapper {
* @return
*/
int
updateNotCurrentVersion
(
Integer
flowId
);
/**
* 将节点版本历史修改为删除标识
* @param flowId
* @return
*/
int
removeByFlowId
(
Integer
flowId
);
}
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/FlowVersionMapper.xml
View file @
8bd1f7af
...
...
@@ -246,4 +246,8 @@
where flow_version_id = #{flowVersionId,jdbcType=INTEGER}
</update>
<update
id=
"removeByFlowId"
>
update flow_version set remove_mark = '2' where flow_id = #{flowId}
</update>
</mapper>
\ No newline at end of file
byit-myth-core/myth-admin-core/src/main/resources/mapper/NodeVersionMapper.xml
View file @
8bd1f7af
...
...
@@ -407,5 +407,8 @@
</set>
where node_version_id = #{nodeVersionId,jdbcType=INTEGER}
</update>
<update
id=
"removeByFlowId"
>
update node_version set remove_mark = '2' where flow_id = #{flowId}
</update>
</mapper>
\ No newline at end of file
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