Browse Source

rev:pda校验

mqtt
gengby 5 months ago
parent
commit
6288ce8347
  1. 6
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java

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

Loading…
Cancel
Save