删除bug修改
This commit is contained in:
lgh 2022-09-26 14:24:10 +08:00
parent 2def9c889f
commit ef0ba77715

View File

@ -473,6 +473,13 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService
autoExeTaskServiceBiz.removeById(currTask.getAutoExeTaskId());
for (CurrTask currTask1:currTaskList
) {
InStockInfo inStockInfo = inStockInfoServiceBiz.getOne(new QueryWrapper<InStockInfo>().eq(InStockInfo.TASK_ID, currTask1.getId()));
if (inStockInfo!=null){
Location location = locationServiceBiz.getById(inStockInfo.getLocationId());
location.setStatus(0);
locationServiceBiz.updateById(location);
inStockInfoServiceBiz.removeById(inStockInfo);
}
currTaskDetServiceBiz.remove(new QueryWrapper<CurrTaskDet>().eq(CurrTaskDet.CURR_TASK_ID,currTask1.getId()));
currTaskServiceBiz.removeById(currTask1);
}