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 00143b0d
authored
Jan 02, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
9b526be9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
platform-process/src/main/java/cn/com/glsx/process/modules/assembler/KeHuLvChengAssembler.java
platform-process/src/main/java/cn/com/glsx/process/modules/controller/SopInstNodeController.java
platform-process/src/main/java/cn/com/glsx/process/modules/assembler/KeHuLvChengAssembler.java
View file @
00143b0
...
@@ -151,6 +151,10 @@ public class KeHuLvChengAssembler {
...
@@ -151,6 +151,10 @@ public class KeHuLvChengAssembler {
notifyTplNode
.
setNodeParamDef
(
nodeParamDef
);
notifyTplNode
.
setNodeParamDef
(
nodeParamDef
);
String
timeStr
=
JacksonUtil
.
getStrValueInJsonStrByPath
(
notifyTplNode
.
getNodeParamDef
(),
"time/defaultValue"
);
String
timeStr
=
JacksonUtil
.
getStrValueInJsonStrByPath
(
notifyTplNode
.
getNodeParamDef
(),
"time/defaultValue"
);
if
(!
StringUtils
.
hasLength
(
timeStr
))
{
throw
new
AdminException
(
ResultEnum
.
PARAM_ERROR
.
getCode
(),
"sop任务发送时间必传!"
);
}
notifyTplNode
.
setNodeCron
(
CronUtil
.
timeStr2Cron
(
timeStr
,
CronUtil
.
TIME_PATTERN_HM
));
notifyTplNode
.
setNodeCron
(
CronUtil
.
timeStr2Cron
(
timeStr
,
CronUtil
.
TIME_PATTERN_HM
));
tplNodes
.
add
(
notifyTplNode
);
tplNodes
.
add
(
notifyTplNode
);
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/controller/SopInstNodeController.java
View file @
00143b0
...
@@ -27,7 +27,7 @@ public class SopInstNodeController extends BaseController {
...
@@ -27,7 +27,7 @@ public class SopInstNodeController extends BaseController {
@Operation
(
summary
=
"更新SOP模板实例节点输入参数"
,
description
=
"更新SOP模板实例节点输入参数"
)
@Operation
(
summary
=
"更新SOP模板实例节点输入参数"
,
description
=
"更新SOP模板实例节点输入参数"
)
@PostMapping
(
"/{instNodeId}/updateParam"
)
@PostMapping
(
"/{instNodeId}/updateParam"
)
public
String
updateNodeParam
(
@PathVariable
Integer
instNodeId
,
@RequestBody
Map
<
String
,
Object
>
nodeParam
)
{
public
String
updateNodeParam
(
@PathVariable
(
"instNodeId"
)
Integer
instNodeId
,
@RequestBody
Map
<
String
,
Object
>
nodeParam
)
{
log
.
info
(
"更新节点输入参数 入参:instNodeId {} nodeParam {}"
,
instNodeId
,
nodeParam
);
log
.
info
(
"更新节点输入参数 入参:instNodeId {} nodeParam {}"
,
instNodeId
,
nodeParam
);
if
(
CollectionUtils
.
isEmpty
(
nodeParam
))
{
if
(
CollectionUtils
.
isEmpty
(
nodeParam
))
{
...
...
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