Commit b329ac9c by huangfusuper

完成停止报警

parent 13c7c41d
package com.byit.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
......@@ -455,8 +456,8 @@ public class FlowServiceImpl implements FlowService {
}
//杀死运行实例
List<RunRecording> runRecordingList = runRecordingMapper.findUnFinishByRunId(runId, flowIdList);
ValidationUtil.dataNotNull(runRecordingList, "该运行id未找到或已经运行完成无需杀死!");
Boolean result = true;
ValidationUtil.isTrueValidation(CollectionUtil.isEmpty(runRecordingList), "该运行id未找到或已经运行完成无需杀死!");
boolean result = true;
runRecordingList.forEach(runRecording -> {
//将未完成的运行实例设置为完成且杀死
runRecording.setFlowStatus("4");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment