Browse Source

2024/07/02

master
qiezi 1 year ago
parent
commit
102b8066af
  1. 3
      src/main/java/com/spring/modules/shipment/service/impl/ShipmentServiceImpl.java
  2. 5
      src/main/resources/mapper/shipment/ShipmentMapper.xml

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

@ -300,12 +300,13 @@ public class ShipmentServiceImpl extends ServiceImpl<ShipmentMapper, Shipment> 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];

5
src/main/resources/mapper/shipment/ShipmentMapper.xml

@ -179,7 +179,7 @@
</select>
<select id="queryTransHeader" resultType="com.spring.modules.material.entity.TransHeader">
select TransNo,
select top 1 TransNo,
Site,
WarehouseID,
TransDate,
@ -210,7 +210,8 @@
Status
from TransHeader
where Site = #{site}
and OrderRef1 = #{shipmentId} and Status = '已录入' and TransType_DB = 'SP'
and OrderRef1 = #{shipmentId} and Status = '已录入' and TransType_DB = 'SP' and LinkOrderFlag = 'Y'
order by TransDate desc
</select>
<select id="queryTransDetail" resultType="com.spring.modules.material.entity.TransDetail">

Loading…
Cancel
Save