From 6288ce83472a3f2c826dfeaea8b7c78afe8a70e9 Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Thu, 8 Aug 2024 15:33:47 +0800 Subject: [PATCH] =?UTF-8?q?rev:pda=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nl/wms/pda/service/impl/PdaServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java index 16d0336..e2c5708 100644 --- a/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java +++ b/lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java @@ -132,6 +132,12 @@ public class PdaServiceImpl implements PdaService { if (ObjectUtil.isNotEmpty(basePoint.getVehicle_code()) && !StrUtil.equals(entity.getVehicle_code(), basePoint.getVehicle_code())) { throw new BadRequestException("组盘信息中的载具编码和该点位记录的载具编码不一致!"); } + if (StrUtil.isEmpty(entity.getMaterial_qty())) { + throw new BadRequestException("组盘数量不能为空"); + } + if (!entity.getIs_link() && entity.getMaterial_qty().contains(".")) { + throw new BadRequestException("如果不需要配盘,请输入整数倍的物料数量"); + } // 获取物料 MdBaseMaterial material = materialService.getById(entity.getMaterial_id()); SchBaseVehiclematerialgroup group = new SchBaseVehiclematerialgroup();