update 二次确认物料出库请求接口,增加SAP报错回滚
This commit is contained in:
parent
76061c6a2b
commit
e26517807f
@ -189,7 +189,9 @@ public class MESToWMSServiceImpl implements MESToWMSService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String billCode = new ToSAPServiceImpl().ProductionStockOut_NEW(shipRequestName, "SDK", "MES", boxIdList, payMentDate);
|
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");
|
EventInfo makeEventInfo = new EventInfoUtil().makeEventInfo("CompleteShipRequest", "MES", "CompleteShipRequest:MES Receive");
|
||||||
new CommonUtils().SaveUnDoInfoByStockPending(boxIdList, billCode, makeEventInfo);
|
new CommonUtils().SaveUnDoInfoByStockPending(boxIdList, billCode, makeEventInfo);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user