Browse Source

2024/07/02

master
qiezi 2 years ago
parent
commit
11c89fdabc
  1. 3
      src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java

3
src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java

@ -195,6 +195,9 @@ public class ShipmentServiceImpl extends ServiceImpl<ShipmentMapper, Shipment> i
box.setPartNo(detail.getPartNo()); box.setPartNo(detail.getPartNo());
box.setSite(shipment.getSite()); box.setSite(shipment.getSite());
PartInformationVo part = shipmentRollMapper.queryPart(box); PartInformationVo part = shipmentRollMapper.queryPart(box);
if (Objects.isNull(part)){
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){

Loading…
Cancel
Save