Compare commits

..

No commits in common. "53aa7694c90ba26bc9355c7392f9ebffd74a715b" and "8b86b1bca3474d441c2a2880f4fed2534fde7ecd" have entirely different histories.

2 changed files with 13 additions and 29 deletions

View File

@ -359,11 +359,10 @@ public class ToSAPServiceImpl {
// 将消息记录log表
ErpMessageLog erplog = new ErpMessageLog();
erplog.setEventUser(user);
erplog.setServerName("WmsToSAP");
erplog.setEventName("MatailInReverse");
erplog.setServerName("WmsToErp");
erplog.setEventName("FGStockIn");
erplog.setInterfaceTime(TimeStampUtil.getCurrentTime(TimeStampUtil.FORMAT_DEFAULT));
// erplog.setMessageId(undoId);
erplog.setMessageId(undoId);
// erplog.setMessageId(RECEIVEACTNO);
erplog.setSendMsg2(makeFGStockIn);
erplog.setSendMsg(makeFGStockIn);
erplog.setReturnMsg2(sapreturn);
@ -726,22 +725,22 @@ public class ToSAPServiceImpl {
// }
// String sendData = ToSAPMessageUtil.mm067(eventUser, bodyData, itemsData);
JSONObject MainData = new JSONObject(true);
Map<String,Object> headData = new HashMap<>();
Map<String,Object> bodyData = new HashMap<>();
Map<String,String> headJSonData = new HashMap<>();
Map<String,String> bodyJSonData = new HashMap<>();
MainData.put("HEAD",headJSonData);
MainData.put("BODY",bodyJSonData);
headData.put("HEAD",headJSonData);
bodyData.put("BODY",bodyJSonData);
headJSonData.put("INTF_ID","");
headJSonData.put("SRC_SYSTEM","WMS");
headJSonData.put("DEST_SYSTEM","SAP");
headJSonData.put("SRC_SYSTEM","");
headJSonData.put("SRC_MSGID","");
headJSonData.put("BACKUP1","");
headJSonData.put("BACKUP2","");
bodyJSonData.put("MBLNR", undoId);
bodyJSonData.put("MJAHR", "2025");
bodyJSonData.put("MBLNR", "");
bodyJSonData.put("MJAHR", "");
String sendData = MainData.toJSONString();
String sendData = "";
return sendData;
}
public String qtrNoInvoice(String receiveRequestName, String siteName, String reActo, String user) {

View File

@ -294,9 +294,6 @@ public class ProductIntoServiceImpl implements FGStockInService {
throw new Exception("请选择正确的入库信息");
}
EventInfo eventInfo = EventInfoUtil.makeEventInfo("receiveMesShippInfo", user, "receiveMesShippInfo");
List<MaterialPackingKey> arrayList = new ArrayList<MaterialPackingKey> ();
//将查询的结果写入MaterialPacking表
for(int i=0;i<packingList.size();i++){
//util将实体类中有值的放到map
@ -306,24 +303,12 @@ public class ProductIntoServiceImpl implements FGStockInService {
packingList1.setMaterialPackingName(packingList.get(i).getMaterialPackingName());
packingList1.setUserColumns(stringObjectMap);
MaterialPackingServiceProxy.getMaterialPackingService().create(eventInfo, packingList1);
MaterialPackingKey materialPackingKey = new MaterialPackingKey("SDK",packingList.get(i).getMaterialPackingName());
arrayList.add(materialPackingKey);
}
//调用Sap入库接口
List<ToSAPFgStockInDto> fgStockInInfo = toSapDao.getFgStockInInfo(boxList);
//封装为Json的字符串
String json = JSON.toJSONString(fgStockInInfo);
//现sap没有手动直接入库
// String undoID = toSAPService.FGStockInByManulIn(json, user);
//手动先入到线边仓再转库
String aimErpFactory = boxList.get(0).getErpFactory();
String aimErpLocation = boxList.get(0).getErpLocation();
String aimLOcationName = boxList.get(0).getLocationName();
String undoID = toSAPService.NoSourceChangeLocation(arrayList,aimErpFactory,
aimErpLocation, aimLOcationName, user );
String undoID = toSAPService.FGStockInByManulIn(json, user);
//更新物料凭证和库存状态