|
|
|
@ -1929,7 +1929,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
wmsOdsMateStorageNews.setStorageAmount(wmsRawOrderInSn1.getAmount());
|
|
|
|
|
wmsOdsMateStorageNewsMapper.updateWmsOdsMateStorageNewsUpdateStorageAmount(wmsOdsMateStorageNews);
|
|
|
|
|
}
|
|
|
|
|
wmsRawOrderIn.setOrderStatus("1");
|
|
|
|
|
wmsRawOrderIn.setOrderStatus("0");
|
|
|
|
|
wmsRawOrderIn.setAccountingTime(new Date());
|
|
|
|
|
wmsRawOrderIn.setAccountingMessage(result2.getMsg());
|
|
|
|
|
wmsRawOrderIn.setUserDefined4(MATERIALDOCUMENT);
|
|
|
|
@ -3079,12 +3079,15 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
//这个地方
|
|
|
|
|
Map paramMap=new HashMap<>();
|
|
|
|
|
List<Map> mapList = new ArrayList<>();
|
|
|
|
|
paramMap.put("S_MBLNR",wmsRawOrderIn.getUserDefined1());
|
|
|
|
|
paramMap.put("S_MJAHR",wmsRawOrderIn.getUserDefined2());
|
|
|
|
|
paramMap.put("S_MATNR",wmsRawOrderIn.getMaterialCode());
|
|
|
|
|
paramMap.put("incomeBatchNo",wmsRawOrderIn.getIncomeBatchNo()); //批次
|
|
|
|
|
paramMap.put("ebelp",wmsRawOrderIn.getPoLine());
|
|
|
|
|
paramMap.put("S_MBLNR",wmsRawOrderIn.getUserDefined1());//u1是暂收凭证
|
|
|
|
|
paramMap.put("S_MJAHR",wmsRawOrderIn.getUserDefined2());//u2是暂收年度凭证
|
|
|
|
|
paramMap.put("S_MATNR",wmsRawOrderIn.getMaterialCode());//物料
|
|
|
|
|
paramMap.put("incomeBatchNo",wmsRawOrderIn.getIncomeBatchNo()); //批次 //批次
|
|
|
|
|
|
|
|
|
|
paramMap.put("ebelp",wmsRawOrderIn.getPoLine());//行项目
|
|
|
|
|
paramMap.put("poNo",wmsRawOrderIn.getPoNo());
|
|
|
|
|
paramMap.put("LFBJA",wmsRawOrderIn.getUserDefined5());//参考凭证会计年度
|
|
|
|
|
paramMap.put("LFBNR",wmsRawOrderIn.getUserDefined4());//参考凭证的凭证号
|
|
|
|
|
mapList.add(paramMap);
|
|
|
|
|
R result2 = remoteSapService.handleUpdateSAP105(mapList);
|
|
|
|
|
if (result2.getCode()==200){
|
|
|
|
@ -3095,7 +3098,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
//成功了--成功了,根据
|
|
|
|
|
WmsRawOrderInSn wmsRawOrderInSn=new WmsRawOrderInSn();
|
|
|
|
|
wmsRawOrderInSn.setUserDefined5(wmsRawOrderIn.getDnNo());
|
|
|
|
|
wmsRawOrderInSn.setUserDefined1("1");//暂收
|
|
|
|
|
wmsRawOrderInSn.setUserDefined1("2");//暂收
|
|
|
|
|
|
|
|
|
|
wmsRawOrderInSn.setUserDefined3(wmsRawOrderIn.getKem());
|
|
|
|
|
List<WmsRawOrderInSn> wmsRawOrderInSnList= wmsRawOrderInSnMapper.selectWmsRawOrderInSnList(wmsRawOrderInSn);
|
|
|
|
@ -3106,9 +3109,9 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
wmsRawOrderInNewsSn.setWaCode(wmsRawOrderInSn1.getWaCode());
|
|
|
|
|
wmsRawOrderInNewsSn.setWhCode(wmsRawOrderInSn1.getWhCode());
|
|
|
|
|
wmsRawOrderInNewsSn.setWlCode(wmsRawOrderInSn1.getWlCode());
|
|
|
|
|
wmsRawOrderInNewsSn.setUserDefined3("1");
|
|
|
|
|
wmsRawOrderInNewsSn.setUserDefined3("0");
|
|
|
|
|
wmsOdsMateStorageNewsSnMapper.updateWmsOdsMateStorageNewsSnTWM(wmsRawOrderInNewsSn);
|
|
|
|
|
wmsRawOrderInSn1.setUserDefined1("2");
|
|
|
|
|
wmsRawOrderInSn1.setUserDefined1("1");
|
|
|
|
|
wmsRawOrderInSnMapper.updateWmsRawOrderInSn(wmsRawOrderInSn1);
|
|
|
|
|
WmsOdsMateStorageNews wmsOdsMateStorageNews=new WmsOdsMateStorageNews();
|
|
|
|
|
wmsOdsMateStorageNews.setMaterialCode(wmsRawOrderInSn1.getMaterialCode());
|
|
|
|
@ -3116,21 +3119,20 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
wmsOdsMateStorageNews.setWlCode(wmsRawOrderInSn1.getWlCode());
|
|
|
|
|
wmsOdsMateStorageNews.setWhCode(wmsRawOrderInSn1.getWhCode());
|
|
|
|
|
wmsOdsMateStorageNews.setStorageAmount(wmsRawOrderInSn1.getAmount());
|
|
|
|
|
wmsOdsMateStorageNewsMapper.updateWmsOdsMateStorageNewsUpdateStorageAmount(wmsOdsMateStorageNews);
|
|
|
|
|
wmsOdsMateStorageNewsMapper.updateWmsOdsMateStorageNewsUpdateStorageAmountFC(wmsOdsMateStorageNews);
|
|
|
|
|
}
|
|
|
|
|
wmsRawOrderIn.setOrderStatus("1");
|
|
|
|
|
wmsRawOrderIn.setAccountingTime(new Date());
|
|
|
|
|
wmsRawOrderIn.setAccountingMessage(result2.getMsg());
|
|
|
|
|
wmsRawOrderIn.setUserDefined4(MATERIALDOCUMENT);
|
|
|
|
|
wmsRawOrderIn.setUserDefined5(MATDOCUMENTYEAR);
|
|
|
|
|
wmsRawOrderIn.setUserDefined10(result2.getMsg());
|
|
|
|
|
// wmsRawOrderIn.setUserDefined4(MATERIALDOCUMENT);
|
|
|
|
|
// wmsRawOrderIn.setUserDefined5(MATDOCUMENTYEAR);
|
|
|
|
|
wmsRawOrderInMapper.updateWmsRawOrderIn(wmsRawOrderIn);
|
|
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
//失败了
|
|
|
|
|
wmsRawOrderIn.setAccountingTime(new Date());
|
|
|
|
|
wmsRawOrderIn.setAccountingMessage(result2.getMsg());
|
|
|
|
|
wmsRawOrderIn.setUserDefined10(result2.getMsg());
|
|
|
|
|
wmsRawOrderInMapper.updateWmsRawOrderIn(wmsRawOrderIn);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|