|
@ -75,10 +75,15 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
//叫料出库
|
|
|
//叫料出库
|
|
|
jsonObject.put("next_point_code", device_code); |
|
|
jsonObject.put("next_point_code", device_code); |
|
|
jsonObject.put("create_mode", "01"); |
|
|
jsonObject.put("create_mode", "01"); |
|
|
produceInfoByCode = this.getProduceInfoByCode(device_code); |
|
|
|
|
|
//批次 物料,客户要从排产单里面去取
|
|
|
//批次 物料,客户要从排产单里面去取
|
|
|
jsonObject.put("pcsn", "pcsn"); |
|
|
jsonObject.put("pcsn", "pcsn"); |
|
|
|
|
|
if (!StrUtil.equals(device_code,"RYW")){ |
|
|
|
|
|
produceInfoByCode = this.getProduceInfoByCode(device_code); |
|
|
jsonObject.put("material_id", produceInfoByCode.getString("material_id")); |
|
|
jsonObject.put("material_id", produceInfoByCode.getString("material_id")); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
jsonObject.put("cust_id", "1516368197694132224"); |
|
|
jsonObject.put("cust_id", "1516368197694132224"); |
|
|
callMaterialTask.createTask((JSONObject) JSON.toJSON(jsonObject)); |
|
|
callMaterialTask.createTask((JSONObject) JSON.toJSON(jsonObject)); |
|
|
break; |
|
|
break; |
|
@ -150,7 +155,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService { |
|
|
JSONObject produceInfoByCode = new JSONObject(); |
|
|
JSONObject produceInfoByCode = new JSONObject(); |
|
|
String device_code = (String) jsonObject.get("device_code"); |
|
|
String device_code = (String) jsonObject.get("device_code"); |
|
|
String vehicle_code = (String) jsonObject.get("vehicle_code"); |
|
|
String vehicle_code = (String) jsonObject.get("vehicle_code"); |
|
|
String qty = (String) jsonObject.get("qty"); |
|
|
String qty = String.valueOf(jsonObject.get("qty")) ; |
|
|
produceInfoByCode = this.getProduceInfoByCode(device_code); |
|
|
produceInfoByCode = this.getProduceInfoByCode(device_code); |
|
|
String material_id = (String) produceInfoByCode.get("material_id"); |
|
|
String material_id = (String) produceInfoByCode.get("material_id"); |
|
|
String cust_id = (String) produceInfoByCode.get("cust_id"); |
|
|
String cust_id = (String) produceInfoByCode.get("cust_id"); |
|
|