OCT
REM: 1. 修改获取节点处置任务接口的出参,设备不存在时增加设备ID字段,taskArray字段置null
This commit is contained in:
parent
f2fc1bfd90
commit
8fb5fc6a43
|
@ -444,6 +444,8 @@ public class DisposeTaskController {
|
||||||
log.error("No such task, deviceId:{}", v);
|
log.error("No such task, deviceId:{}", v);
|
||||||
NodeTaskData taskData = new NodeTaskData();
|
NodeTaskData taskData = new NodeTaskData();
|
||||||
rspInfo.getItems().add(taskData);
|
rspInfo.getItems().add(taskData);
|
||||||
|
taskData.setId(v);
|
||||||
|
taskData.setTaskArray(null);
|
||||||
taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode());
|
taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode());
|
||||||
taskData.setMessage(ErrorCode.ERR_NOSUCHTASK.getMsg());
|
taskData.setMessage(ErrorCode.ERR_NOSUCHTASK.getMsg());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue