From 16162155341df715d90d1f9cf0cea982abd82ab2 Mon Sep 17 00:00:00 2001 From: lgh Date: Sat, 13 Aug 2022 11:04:44 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E9=AA=8C=E8=AF=81=E5=A4=9A=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4=E4=BB=BB=E5=8A=A1=E5=BF=85=E9=A1=BB=E6=9C=89=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E5=8D=A1=E6=89=8D=E8=83=BD=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mt/wms/empty/controller/CurrTaskController.java | 3 +++ 1 file changed, 3 insertions(+) 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;