This commit is contained in:
2022-11-25 13:55:04 +08:00
parent 673758226e
commit 80da889673
4 changed files with 33 additions and 2 deletions

View File

@@ -695,6 +695,9 @@ public class MesToLmsServiceImpl implements MesToLmsService {
String Description = param.getString("Description"); // 来源卷位置 String Description = param.getString("Description"); // 来源卷位置
String DateOfFGInbound = param.getString("DateOfFGInbound"); // 来源卷位置 String DateOfFGInbound = param.getString("DateOfFGInbound"); // 来源卷位置
String box_type = param.getString("Attribute1"); // 木箱料号 String box_type = param.getString("Attribute1"); // 木箱料号
String box_length = param.getString("Attribute2"); // 木箱料号
String box_width = param.getString("Attribute3"); // 木箱料号
String box_high = param.getString("Attribute4"); // 木箱料号
JSONArray details = param.getJSONArray("details"); JSONArray details = param.getJSONArray("details");
@@ -723,6 +726,9 @@ public class MesToLmsServiceImpl implements MesToLmsService {
jo.put("package_box_sn", PackageBoxSN); jo.put("package_box_sn", PackageBoxSN);
jo.put("sap_pcsn", sap_pcsn); jo.put("sap_pcsn", sap_pcsn);
jo.put("box_type", box_type); jo.put("box_type", box_type);
jo.put("box_length", box_length);
jo.put("box_width", box_width);
jo.put("box_high", box_high);
jo.put("quanlity_in_box", QuanlityInBox); jo.put("quanlity_in_box", QuanlityInBox);
jo.put("box_weight", BoxWeight); jo.put("box_weight", BoxWeight);
jo.put("quality_guaran_period", QualityGuaranPeriod); jo.put("quality_guaran_period", QualityGuaranPeriod);

View File

@@ -2149,7 +2149,6 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
// WriteSheet sheet = EasyExcel.writerSheet().build(); // WriteSheet sheet = EasyExcel.writerSheet().build();
// 5.单组填充 // 5.单组填充
HashMap<String, Object> oneMap = new HashMap<>(); HashMap<String, Object> oneMap = new HashMap<>();
oneMap.put("vbeln", "");
oneMap.put("consignee", jsonMst.getString("consignee")); oneMap.put("consignee", jsonMst.getString("consignee"));
oneMap.put("receiver", jsonMst.getString("receiver")); oneMap.put("receiver", jsonMst.getString("receiver"));
oneMap.put("receiptaddress", jsonMst.getString("receiptaddress")); oneMap.put("receiptaddress", jsonMst.getString("receiptaddress"));
@@ -2159,7 +2158,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
oneMap.put("carno", jsonMst.getString("carno")); oneMap.put("carno", jsonMst.getString("carno"));
oneMap.put("driverphone", jsonMst.getString("driverphone")); oneMap.put("driverphone", jsonMst.getString("driverphone"));
oneMap.put("contractno", jsonMst.getString("contractno")); oneMap.put("contractno", jsonMst.getString("contractno"));
oneMap.put("all_box", ""); // 总箱数
JSONArray jsonAllBox = WQL.getWO("ST_OUTIVT02").addParam("flag", "4").addParam("iostorinv_id", MapUtil.getStr(whereJson, "iostorinv_id")).process().getResultJSONArray(0);
oneMap.put("all_box", jsonAllBox.size());
oneMap.put("all_qty", ""); oneMap.put("all_qty", "");
oneMap.put("deliveryaddress", jsonMst.getString("deliveryaddress")); oneMap.put("deliveryaddress", jsonMst.getString("deliveryaddress"));
oneMap.put("deliveryname", jsonMst.getString("deliveryname")); oneMap.put("deliveryname", jsonMst.getString("deliveryname"));
@@ -2176,6 +2177,8 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
JSONObject json = dtlArr.getJSONObject(i); JSONObject json = dtlArr.getJSONObject(i);
HashMap<String, Object> mapFL = new HashMap<>(); HashMap<String, Object> mapFL = new HashMap<>();
oneMap.put("vbeln", json.getString("vbeln")); // 送货单号
// 明细
mapFL.put("index", i + 1); mapFL.put("index", i + 1);
mapFL.put("source_bill_code", json.getString("source_bill_code")); mapFL.put("source_bill_code", json.getString("source_bill_code"));
mapFL.put("material_name", json.getString("material_name")); mapFL.put("material_name", json.getString("material_name"));
@@ -2199,6 +2202,9 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
} }
JSONObject json = dtlArr.getJSONObject(i); JSONObject json = dtlArr.getJSONObject(i);
HashMap<String, Object> mapFL = new HashMap<>(); HashMap<String, Object> mapFL = new HashMap<>();
oneMap.put("vbeln", json.getString("vbeln")); // 送货单号
// 明细
mapFL.put("index", i + 1); mapFL.put("index", i + 1);
mapFL.put("source_bill_code", json.getString("source_bill_code")); mapFL.put("source_bill_code", json.getString("source_bill_code"));
mapFL.put("material_name", json.getString("material_name")); mapFL.put("material_name", json.getString("material_name"));

View File

@@ -101,3 +101,22 @@
ENDSELECT ENDSELECT
ENDQUERY ENDQUERY
ENDIF ENDIF
IF 输入.flag = "3"
QUERY
SELECT
count(*) AS num
FROM
ST_IVT_IOStorInvDis dis
WHERE
1 = 1
OPTION 输入.iostorinv_id <> ""
dis.iostorinv_id = 输入.iostorinv_id
ENDOPTION
group by dis.struct_id
ENDSELECT
ENDQUERY
ENDIF