REM:
1. 修改停止指定能力节点全部处置任务接口出参为同一个task任务的问题
This commit is contained in:
chenlinghy 2020-05-14 11:13:19 +08:00
parent 964ce4b318
commit 3e1e07f7ca
1 changed files with 2 additions and 1 deletions

View File

@ -280,10 +280,10 @@ public class DisposeTaskController {
TaskInfoRsp rspInfo = new TaskInfoRsp();
reqInfo.getItems().forEach(v -> {
TaskInfoData taskData = TaskInfoData.builder().type(v.getType()).build();
List<MReturnType<ErrorCode, TaskInfoDetail>> ret = taskService.stopTaskByDisposeNode(Long.parseLong(v.getId()), v.getType());
if (ret.size() == 0) {
TaskInfoData taskData = TaskInfoData.builder().type(v.getType()).build();
taskData.setId("-1");
taskData.setTaskId("-1");
taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode());
@ -291,6 +291,7 @@ public class DisposeTaskController {
rspInfo.getItems().add(taskData);
} else {
ret.forEach(k -> {
TaskInfoData taskData = TaskInfoData.builder().type(v.getType()).build();
ErrorCode retError = k.getFirstParam();
TaskInfoDetail taskInfo = k.getSecondParam();
taskData.setId(String.valueOf(taskInfo.getDeviceId()));