任务执行失败缓存区状态回滚

This commit is contained in:
lgh 2022-08-03 17:13:53 +08:00
parent be0ffcae00
commit e3d17d1923

View File

@ -346,6 +346,9 @@ public class AsynRunTaskService extends BaseService {
} }
} }
} else { } else {
//修改库位状态
location.setStatus(0);
locationServiceBiz.updateById(location);
//任务失败清除缓存库位信息 //任务失败清除缓存库位信息
inStockInfoServiceBiz.removeById(inStockInfo); inStockInfoServiceBiz.removeById(inStockInfo);
runTask.setStatus(3); runTask.setStatus(3);