|
|
@ -300,12 +300,13 @@ public class ShipmentServiceImpl extends ServiceImpl<ShipmentMapper, Shipment> i |
|
|
box.setSite(shipment.getSite()); |
|
|
box.setSite(shipment.getSite()); |
|
|
PartInformationVo part = shipmentRollMapper.queryPart(box); |
|
|
PartInformationVo part = shipmentRollMapper.queryPart(box); |
|
|
if (Objects.isNull(part)){ |
|
|
if (Objects.isNull(part)){ |
|
|
|
|
|
// continue; |
|
|
throw new RuntimeException(detail.getPartNo()+"物料信息不存在!"); |
|
|
throw new RuntimeException(detail.getPartNo()+"物料信息不存在!"); |
|
|
} |
|
|
} |
|
|
String customerPart = shipmentRollMapper.queryPartPropertyItem(part.getSite(),part.getPartNo(),"P00001"); |
|
|
String customerPart = shipmentRollMapper.queryPartPropertyItem(part.getSite(),part.getPartNo(),"P00001"); |
|
|
String[] customerPartNo = customerPart.split(","); |
|
|
String[] customerPartNo = customerPart.split(","); |
|
|
if (customerPartNo.length < 3){ |
|
|
if (customerPartNo.length < 3){ |
|
|
throw new RuntimeException("料号"+part+"的客户料号未维护或格式不正确!"); |
|
|
|
|
|
|
|
|
throw new RuntimeException("料号"+part.getPartNo()+"的客户料号未维护或格式不正确!"); |
|
|
} |
|
|
} |
|
|
String ACCPartNo = customerPartNo[0]; |
|
|
String ACCPartNo = customerPartNo[0]; |
|
|
String version = customerPartNo[1]; |
|
|
String version = customerPartNo[1]; |
|
|
|