|
@ -132,6 +132,12 @@ public class PdaServiceImpl implements PdaService { |
|
|
if (ObjectUtil.isNotEmpty(basePoint.getVehicle_code()) && !StrUtil.equals(entity.getVehicle_code(), basePoint.getVehicle_code())) { |
|
|
if (ObjectUtil.isNotEmpty(basePoint.getVehicle_code()) && !StrUtil.equals(entity.getVehicle_code(), basePoint.getVehicle_code())) { |
|
|
throw new BadRequestException("组盘信息中的载具编码和该点位记录的载具编码不一致!"); |
|
|
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()); |
|
|
MdBaseMaterial material = materialService.getById(entity.getMaterial_id()); |
|
|
SchBaseVehiclematerialgroup group = new SchBaseVehiclematerialgroup(); |
|
|
SchBaseVehiclematerialgroup group = new SchBaseVehiclematerialgroup(); |
|
|