diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java index ad484a9..4db191c 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/service/impl/CurrTaskServiceImpl.java @@ -247,10 +247,14 @@ public class CurrTaskServiceImpl extends BaseService implements CurrTaskService for (CurrTask currTask1:currTaskList ) { currTaskDetServiceBiz.remove(new QueryWrapper().eq(CurrTaskDet.CURR_TASK_ID,currTask1.getId())); + currTaskServiceBiz.removeById(currTask1); } + return R.ok(idParam.getId().toString()); + }else { + currTaskServiceBiz.removeById(idParam); + return R.ok(idParam.getId().toString()); } - currTaskServiceBiz.removeById(idParam); - return R.ok(idParam.getId().toString()); + } @Override