update 二次确认物料出库请求接口,增加SAP报错回滚

This commit is contained in:
18110972313 2025-05-15 13:59:25 +08:00
parent 76061c6a2b
commit e26517807f

View File

@ -189,7 +189,9 @@ public class MESToWMSServiceImpl implements MESToWMSService {
}
String billCode = new ToSAPServiceImpl().ProductionStockOut_NEW(shipRequestName, "SDK", "MES", boxIdList, payMentDate);
if (billCode == null) {
throw new RuntimeException("SAP接口过账失败");
}
EventInfo makeEventInfo = new EventInfoUtil().makeEventInfo("CompleteShipRequest", "MES", "CompleteShipRequest:MES Receive");
new CommonUtils().SaveUnDoInfoByStockPending(boxIdList, billCode, makeEventInfo);