diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java index 820812a..0cae7a2 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/CurrTaskController.java @@ -144,6 +144,9 @@ public class CurrTaskController extends BaseController { @ApiOperation(value = "订单加工-创建多个个分步骤加工任务至任务队列") public R createAutoTask(@Validated @RequestBody AutoCurrTaskParam autoCurrTaskParam){ List detParams = autoCurrTaskParam.getTaskCreateParamList(); + if (detParams.size()==0){ + return failed("请添加至少一个标识卡!"); + } Boolean apmsCreateProcessSheet=false; String sheetNo=null; int i=1;