|
|
@ -612,10 +612,34 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
SapPurchaseOrderQuery sapPurchaseOrderQuery=new SapPurchaseOrderQuery();
|
|
|
|
SapPurchaseOrderQuery sapPurchaseOrderQuery=new SapPurchaseOrderQuery();
|
|
|
|
sapPurchaseOrderQuery.setEbeln(odsProcureOrder.getProcureCode());
|
|
|
|
sapPurchaseOrderQuery.setEbeln(odsProcureOrder.getProcureCode());
|
|
|
|
R result= remoteSapService.sapPurchaseOrderSync(sapPurchaseOrderQuery);
|
|
|
|
R result= remoteSapService.sapPurchaseOrderSync(sapPurchaseOrderQuery);
|
|
|
|
List<SapPurchaseOrderQuery> sapPurchaseOrderQueryList=new ArrayList<>();
|
|
|
|
List<Map<String, String>> mapList = new ArrayList<>();
|
|
|
|
sapPurchaseOrderQueryList= (List<SapPurchaseOrderQuery>) result.getData();
|
|
|
|
mapList= (List<Map<String, String>>) result.getData();
|
|
|
|
// sapPurchaseOrderQueryList
|
|
|
|
for(Map<String, String> sapPurchaseOrderQuery1:mapList){
|
|
|
|
return null;
|
|
|
|
OdsProcureOrder order =new OdsProcureOrder();
|
|
|
|
|
|
|
|
order.setProcureCode(sapPurchaseOrderQuery1.get("ebeln"));
|
|
|
|
|
|
|
|
order.setSiteCode(sapPurchaseOrderQuery1.get("werks"));
|
|
|
|
|
|
|
|
order.setUserDefined3(sapPurchaseOrderQuery1.get("ebelp"));//批次
|
|
|
|
|
|
|
|
order.setMaterialCode(sapPurchaseOrderQuery1.get("matnr"));
|
|
|
|
|
|
|
|
order.setMaterialDesc(sapPurchaseOrderQuery1.get("maktx"));
|
|
|
|
|
|
|
|
order.setActive("1");
|
|
|
|
|
|
|
|
List<OdsProcureOrder> orderList= odsProcureOrderMapper.selectOdsProcureOrderList(order);
|
|
|
|
|
|
|
|
if (orderList.size()>0){
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
order.setPlanNumber(new BigDecimal(sapPurchaseOrderQuery1.get("menge")));
|
|
|
|
|
|
|
|
order.setUnit(sapPurchaseOrderQuery1.get("meins"));
|
|
|
|
|
|
|
|
order.setSupplierCode(sapPurchaseOrderQuery1.get("lifnr"));
|
|
|
|
|
|
|
|
order.setUserDefined9(sapPurchaseOrderQuery1.get("zmenge"));
|
|
|
|
|
|
|
|
order.setUserDefined10(sapPurchaseOrderQuery1.get("elikz"));
|
|
|
|
|
|
|
|
order.setUserDefined11(sapPurchaseOrderQuery1.get("eindt"));
|
|
|
|
|
|
|
|
order.setCreateBy(odsProcureOrder.getCreateBy());
|
|
|
|
|
|
|
|
order.setPlanDate(new Date());
|
|
|
|
|
|
|
|
order.setOrderStatus("0");
|
|
|
|
|
|
|
|
//order.setID(IdUtils.fastSimpleUUID());
|
|
|
|
|
|
|
|
order.setCreateDate(new Date());
|
|
|
|
|
|
|
|
odsProcureOrderMapper.insertOdsProcureOrder(order);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String DesignatedPalletOutboundWCS(WMSDesignatedPalle wmsDesignatedPalle){
|
|
|
|
public String DesignatedPalletOutboundWCS(WMSDesignatedPalle wmsDesignatedPalle){
|
|
|
|