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 233c24ab
authored
Sep 27, 2023
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
模板下发门店接口 增加节点不可跳过校验
1 parent
e7b50c93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopTplNode.java
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
platform-process-api/src/main/java/cn/com/glsx/process/modules/entity/SopTplNode.java
View file @
233c24a
...
...
@@ -6,6 +6,10 @@ import javax.persistence.Table;
@Table
(
name
=
"sop_tpl_node"
)
public
class
SopTplNode
{
public
static
final
byte
NODE_SKIPABLE_NO
=
0
;
public
static
final
byte
NODE_SKIPABLE_YES
=
1
;
/**
* 节点id
*/
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/service/SopInstService.java
View file @
233c24a
...
...
@@ -322,7 +322,7 @@ public class SopInstService {
//克隆节点
List
<
SopInstNode
>
sopInstNodes
=
new
ArrayList
<>();
nodes
.
forEach
(
sopTplNode
->
{
for
(
SopTplNode
sopTplNode
:
nodes
)
{
SopInstNode
sopInstNode
=
sopTplNodeConverter
.
tpl2inst
(
sopTplNode
);
sopInstNode
.
setInstId
(
instId
);
sopInstNode
.
setNodeStatus
(
SopInstNode
.
NODE_STATUS_NORMAL
);
...
...
@@ -332,9 +332,15 @@ public class SopInstService {
//页面选择是否跳过处理
SopInstNode
sopInstNodeTemp
=
customNodesMap
.
get
(
sopInstNode
.
getNodeId
());
if
(!
Objects
.
isNull
(
sopInstNodeTemp
)
&&
sopInstNodeTemp
.
getNodeSkip
().
equals
(
SopInstNode
.
NODE_SKIP_TRUE
)
&&
sopTplNode
.
getNodeSkipable
().
equals
(
SopTplNode
.
NODE_SKIPABLE_NO
))
{
throw
ResultException
.
create
(
SystemMessage
.
ARGS_ERROR
.
getCode
(),
String
.
format
(
"节点 %s 不可跳过"
,
sopInstNode
.
getNodeName
()));
}
sopInstNode
.
setNodeSkip
(!
Objects
.
isNull
(
sopInstNodeTemp
)
?
sopInstNodeTemp
.
getNodeSkip
()
:
SopInstNode
.
NODE_SKIP_FALSE
);
sopInstNodes
.
add
(
sopInstNode
);
}
);
}
sopInstNodeMapper
.
insertList
(
sopInstNodes
);
}
}
...
...
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