Commit 01c6f081 by tiger

任务启动参数处理

1 parent 0ba50bbc
......@@ -26,7 +26,6 @@ import cn.com.glsx.process.modules.sop.execute.SopNodeType;
import cn.com.glsx.process.util.JacksonUtils;
import cn.hutool.core.lang.Pair;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
@Slf4j
......@@ -39,9 +38,13 @@ public class SopInstNodeExecuteJobHandler {
@XxlJob(SopXxlJobUtil.SOP_NODE_EXECUTE_JOB_ID)
public void handler(String param1) throws Exception {
String json = XxlJobHelper.getJobParam();
SopInstNodeParam param = JSONUtil.toBean(json, SopInstNodeParam.class);
SopInstNodeParam param = JacksonUtils.fromJson(json, SopInstNodeParam.class);
SopXxlJobUtil.log(log, "【执行Sop节点】{}", param);
if (param == null) {
SopXxlJobUtil.log(log, "【执行Sop节点】任务启动参数为空!!!");
return;
}
SopStruct sop = sopService.loadSop(param.getInstId());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!