Commit e36a4328 by guo_minglei@163.com

修改传参方式

parent ad977f02
......@@ -352,7 +352,7 @@ public class FlowServiceImpl implements FlowService {
@Override
public Boolean killFlow(String runId) throws InterruptedException {
ValidationUtil.dataNotBank(runId, "运行实例不允许3为空!");
ValidationUtil.dataNotBank(runId, "运行实例不允许为空!");
//杀死运行实例
List<RunRecording> runRecordings = runRecordingMapper.findUnFinishByRunId(runId);
ValidationUtil.dataNotNull(runRecordings, "该运行id未找到或已经运行完成无需杀死!");
......
......@@ -269,10 +269,8 @@ public class JobUtils {
* @return
*/
public static ResponseResult killFlow(String runId){
Map<String, Object> map = new HashMap<>(2);
map.put("runId", runId);
//发送请求 添加任务
String response = createHttpRequest(REQUEST_FLOW_KILL_FLOW, JSON.toJSONString(map));
String response = createHttpRequest(REQUEST_FLOW_KILL_FLOW, "runId=" + runId);
log.info("--------------------杀死工作流接口调用成功,结果为:{}------------------------",response);
return JSON.parseObject(response, ResponseResult.class);
}
......
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