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();