REM:
1. 修改获取处置任务详细信息接口响应信息中id字段的获取
This commit is contained in:
chenlinghy 2020-05-11 14:26:06 +08:00
parent 3d7142f5e8
commit 37b8322584
1 changed files with 5 additions and 5 deletions

View File

@ -194,7 +194,7 @@ public class DisposeTaskController {
taskData.setType(taskInfo.getType());
taskData.setDisposeIp(taskInfo.getDisposeIp());
taskData.setLeftTime(Math.abs(Helper.getTimestampDiffNow(taskInfo.getBeginTime())
- Helper.getTimestampDiffNow(taskInfo.getPlanEndTime())) /60 );
- Helper.getTimestampDiffNow(taskInfo.getPlanEndTime())) / 60);
taskData.setStatus(retError.getCode());
taskData.setMessage(retError.getMsg());
@ -374,7 +374,7 @@ public class DisposeTaskController {
StopTaskData reqInfo = mr.getRequestObject(StopTaskData.class);
if(reqInfo.getType() ==null || String.valueOf(reqInfo.getType()).length() == 0){
if (reqInfo.getType() == null || String.valueOf(reqInfo.getType()).length() == 0) {
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION);
}
@ -538,7 +538,7 @@ public class DisposeTaskController {
.build();
rspInfo.getItems().add(taskInfoData);
taskInfoData.setId(v.getId().toString());
taskInfoData.setId(v.getDeviceId().toString());
taskInfoData.setStatus(ErrorCode.ERR_OK.getCode());
taskInfoData.setMessage(ErrorCode.ERR_OK.getMsg());
});
@ -551,8 +551,8 @@ public class DisposeTaskController {
unExists.forEach(v -> {
TaskInfoData taskData = new TaskInfoData();
rspInfo.getItems().add(taskData);
taskData.setTaskId("-1");
taskData.setId(v);
taskData.setTaskId(v);
taskData.setId("-1");
taskData.setStartTime(0);
taskData.setDisposeTime(0);
taskData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode());