This commit is contained in:
lgh 2022-07-17 10:26:04 +08:00
commit 03d2e453fb

View File

@ -251,6 +251,9 @@ public class AsynRunTaskService extends BaseService {
// 记录开始加工时的消耗值
asynStartRecordConsume(currTaskId, currTask.getKilnId());
} else {
//修改缓存区存储情况表状态
inStockInfo.setStatus(0);
inStockInfoServiceBiz.updateById(inStockInfo);
runTask.setStatus(3);
runTask.setUpdateTime(LocalDateTime.now());
runTaskServiceBiz.updateById(runTask);
@ -336,6 +339,8 @@ public class AsynRunTaskService extends BaseService {
}
}
} else {
//任务失败清除缓存库位信息
inStockInfoServiceBiz.removeById(inStockInfo);
runTask.setStatus(3);
runTask.setUpdateTime(LocalDateTime.now());
runTaskServiceBiz.updateById(runTask);