parent
964ce4b318
commit
3e1e07f7ca
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue