diff --git a/src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java b/src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java index e047348..aa8c70a 100644 --- a/src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java +++ b/src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java @@ -300,12 +300,13 @@ public class ShipmentServiceImpl extends ServiceImpl i box.setSite(shipment.getSite()); PartInformationVo part = shipmentRollMapper.queryPart(box); if (Objects.isNull(part)){ +// continue; throw new RuntimeException(detail.getPartNo()+"物料信息不存在!"); } String customerPart = shipmentRollMapper.queryPartPropertyItem(part.getSite(),part.getPartNo(),"P00001"); String[] customerPartNo = customerPart.split(","); if (customerPartNo.length < 3){ - throw new RuntimeException("料号"+part+"的客户料号未维护或格式不正确!"); + throw new RuntimeException("料号"+part.getPartNo()+"的客户料号未维护或格式不正确!"); } String ACCPartNo = customerPartNo[0]; String version = customerPartNo[1]; diff --git a/src/main/resources/mapper/shipment/ShipmentMapper.xml b/src/main/resources/mapper/shipment/ShipmentMapper.xml index 4b5db0b..7658406 100644 --- a/src/main/resources/mapper/shipment/ShipmentMapper.xml +++ b/src/main/resources/mapper/shipment/ShipmentMapper.xml @@ -179,7 +179,7 @@