REM:
1. 修改调用停止清洗任务接口的入参
This commit is contained in:
chenlinghy 2020-07-02 16:01:11 +08:00
parent 297c8eef72
commit 380d7756b1
1 changed files with 3 additions and 1 deletions

View File

@ -257,7 +257,9 @@ public class TaskServiceImpl implements TaskService {
TaskInfo taskInfo = taskInfoMapper.getTaskInfo(taskId, k.getId());
// 异步启动处置任务
CompletableFuture.supplyAsync(() -> dp.stopDispose(task.getDisposeIp(), DeviceCapacity.values()[task.getType()], taskInfo.getExternId()))
CompletableFuture.supplyAsync(() -> dp.stopDispose(task.getDisposeIp(),
DeviceCapacity.values()[task.getType()],
(taskInfo == null || taskInfo.getExternId() == null) ? -1 :taskInfo.getExternId()))
.whenComplete((v, ex) -> {
if (ex != null) {
// 恢复缓存中任务状态到先前状态