Merge branch 'master' of 121.40.234.130:root/lanzhouhailiang_one
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
FROM
|
FROM
|
||||||
ST_IVT_IOStorInv ios
|
ST_IVT_IOStorInv ios
|
||||||
LEFT JOIN st_ivt_iostorinvdis dis ON dis.iostorinv_id = ios.iostorinv_id
|
LEFT JOIN st_ivt_iostorinvdis dis ON dis.iostorinv_id = ios.iostorinv_id
|
||||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.container_name = dis.pcsn AND dis.box_no = sub.package_box_sn
|
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.container_name = dis.pcsn
|
||||||
WHERE
|
WHERE
|
||||||
ios.is_delete = '0'
|
ios.is_delete = '0'
|
||||||
AND
|
AND
|
||||||
|
|||||||
@@ -792,7 +792,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
|
|
||||||
JSONArray resultJSONArray = WQL.getWO("QST_IVT_CHECKOUTBILL").addParamMap(map).process().getResultJSONArray(0);
|
JSONArray resultJSONArray = WQL.getWO("QST_IVT_CHECKOUTBILL").addParamMap(map).process().getResultJSONArray(0);
|
||||||
|
|
||||||
List<JSONObject> ivtList = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "20").process().getResultJSONArray(0).toJavaList(JSONObject.class);
|
List<JSONObject> ivtList = WQL.getWO("QST_IVT_CHECKOUTBILL").addParam("flag", "21").process().getResultJSONArray(0).toJavaList(JSONObject.class);
|
||||||
|
|
||||||
List<Map<String, Object>> list = new ArrayList<>();
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
|
|
||||||
@@ -822,7 +822,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String box_weight = ivtList.stream()
|
String box_weight = ivtList.stream()
|
||||||
.filter(row -> row.getString("bill_code").equals(jsonObject.getString("bill_code")))
|
.filter(row -> row.getString("iostorinvdtl_id").equals(jsonObject.getString("iostorinvdtl_id")))
|
||||||
.map(row -> row.getDoubleValue("box_weight"))
|
.map(row -> row.getDoubleValue("box_weight"))
|
||||||
.reduce(Double::sum).orElse(0.00).toString();
|
.reduce(Double::sum).orElse(0.00).toString();
|
||||||
|
|
||||||
|
|||||||
@@ -199,7 +199,8 @@
|
|||||||
MAX(ios.order_number) AS order_number,
|
MAX(ios.order_number) AS order_number,
|
||||||
MAX(ios.receiptaddress) AS receiptaddress,
|
MAX(ios.receiptaddress) AS receiptaddress,
|
||||||
MAX( sd.label ) AS bill_status,
|
MAX( sd.label ) AS bill_status,
|
||||||
count(DISTINCT(dis.box_no)) as box_count
|
count(DISTINCT(dis.box_no)) as box_count,
|
||||||
|
dtl.iostorinvdtl_id
|
||||||
FROM
|
FROM
|
||||||
st_ivt_iostorinvdis dis
|
st_ivt_iostorinvdis dis
|
||||||
LEFT JOIN st_ivt_iostorinvdtl dtl ON dis.iostorinvdtl_id = dtl.iostorinvdtl_id
|
LEFT JOIN st_ivt_iostorinvdtl dtl ON dis.iostorinvdtl_id = dtl.iostorinvdtl_id
|
||||||
@@ -1105,32 +1106,21 @@
|
|||||||
ENDQUERY
|
ENDQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
IF 输入.flag = "20"
|
IF 输入.flag = "21"
|
||||||
QUERY
|
QUERY
|
||||||
SELECT
|
SELECT
|
||||||
SUM(sub.box_weight) AS box_weight,
|
SUM(sub.box_weight) AS box_weight,
|
||||||
MAX(ios.bill_code) AS bill_code
|
MAX(dtl.iostorinvdtl_id) AS iostorinvdtl_id
|
||||||
FROM
|
FROM
|
||||||
(
|
st_ivt_iostorinvdis dis
|
||||||
SELECT
|
LEFT JOIN st_ivt_iostorinvdtl dtl ON dis.iostorinvdtl_id = dtl.iostorinvdtl_id
|
||||||
a.box_no,
|
LEFT JOIN st_ivt_iostorinv ios ON ios.iostorinv_id = dtl.iostorinv_id
|
||||||
MAX(b.iostorinv_id) AS iostorinv_id,
|
|
||||||
MAX(a.pcsn) AS pcsn
|
|
||||||
FROM
|
|
||||||
st_ivt_iostorinvdis a
|
|
||||||
LEFT JOIN st_ivt_iostorinv b ON a.iostorinv_id = b.iostorinv_id
|
|
||||||
WHERE
|
|
||||||
b.io_type = '1'
|
|
||||||
and b.is_delete='0'
|
|
||||||
|
|
||||||
GROUP BY a.box_no
|
|
||||||
) dis
|
|
||||||
LEFT JOIN st_ivt_iostorinv ios ON dis.iostorinv_id = ios.iostorinv_id
|
|
||||||
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.package_box_sn = dis.box_no AND dis.pcsn = sub.container_name
|
LEFT JOIN pdm_bi_subpackagerelation sub ON sub.package_box_sn = dis.box_no AND dis.pcsn = sub.container_name
|
||||||
WHERE
|
WHERE
|
||||||
ios.io_type = '1'
|
ios.io_type = '1'
|
||||||
and ios.is_delete='0'
|
and ios.is_delete='0'
|
||||||
GROUP BY ios.bill_code
|
|
||||||
|
GROUP BY dtl.iostorinvdtl_id
|
||||||
|
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDQUERY
|
ENDQUERY
|
||||||
|
|||||||
Reference in New Issue
Block a user