Commit 00143b0d by 谢海旭

优化

1 parent 9b526be9
......@@ -151,6 +151,10 @@ public class KeHuLvChengAssembler {
notifyTplNode.setNodeParamDef(nodeParamDef);
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));
tplNodes.add(notifyTplNode);
......
......@@ -27,7 +27,7 @@ public class SopInstNodeController extends BaseController {
@Operation(summary = "更新SOP模板实例节点输入参数", description = "更新SOP模板实例节点输入参数")
@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);
if (CollectionUtils.isEmpty(nodeParam)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!