diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java index dcdfb992..1c65ab2f 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/OdsProcureOrderServiceImpl.java @@ -917,13 +917,15 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService { //取sap仓库号 SapBackflushMPQuery sapBackflushMPQuery = new SapBackflushMPQuery(); sapBackflushMPQuery.setPlant(odsProcureOutOrder.getSiteCode()); //工厂 - sapBackflushMPQuery.setLgort("0013");//反冲0013 - sapBackflushMPQuery.setMatnr(odsProcureOutOrder.getMaterialCode());//物料号 - sapBackflushMPQuery.setQuantity(odsProcureOutOrder.getOutNumber().toString()); //数量 - sapBackflushMPQuery.setMeins(odsProcureOutOrder.getUnit()); //基本计量单位 - sapBackflushMPQuery.setBatch(odsProcureOutOrder.getUserDefined2()); //批号 - sapMaterialPostingFCList.add(sapBackflushMPQuery); - orderList2FC.add(odsProcureOutOrder); + String lgort = baseWarehouseMapper.selectByCode(odsProcureOutOrder.getLocCode()); + sapBackflushMPQuery.setLgort(lgort); + sapBackflushMPQuery.setUmlgo("0013"); + sapBackflushMPQuery.setMatnr(odsProcureOutOrder.getMaterialCode());//物料号 + sapBackflushMPQuery.setQuantity(odsProcureOutOrder.getOutNumber().toString()); //数量 + sapBackflushMPQuery.setMeins(odsProcureOutOrder.getUnit()); //基本计量单位 + sapBackflushMPQuery.setBatch(odsProcureOutOrder.getUserDefined2()); //批号 + sapMaterialPostingFCList.add(sapBackflushMPQuery); + orderList2FC.add(odsProcureOutOrder); } if (sapMaterialPostingFCList.size() > 0) { //反冲过账