|
|
@ -103,7 +103,8 @@ |
|
|
|
GROUP_CONCAT(ldpl.waybill_number) AS waybillNumber, |
|
|
|
GROUP_CONCAT(ldpl.waybill_number) AS waybillNumber, |
|
|
|
ldsa.total_number AS totalNumber, |
|
|
|
ldsa.total_number AS totalNumber, |
|
|
|
sum(lwusa.num) AS totalNum, |
|
|
|
sum(lwusa.num) AS totalNum, |
|
|
|
IF(ldsa.total_number = sum( lwusa.num ),1,0) AS complete |
|
|
|
IF(ldsa.total_number = sum( lwusa.num ),1,0) AS complete, |
|
|
|
|
|
|
|
2 AS goodsType |
|
|
|
FROM |
|
|
|
FROM |
|
|
|
logpm_warehouse_updown_stockup_area AS lwusa |
|
|
|
logpm_warehouse_updown_stockup_area AS lwusa |
|
|
|
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON lwusa.association_id = ldpl.id |
|
|
|
LEFT JOIN logpm_distribution_parcel_list AS ldpl ON lwusa.association_id = ldpl.id |
|
|
@ -115,14 +116,16 @@ |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectStockUpAreaStockList" resultType="java.util.Map"> |
|
|
|
<select id="selectStockUpAreaStockList" resultType="java.util.Map"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
lwusa.materiel_code, |
|
|
|
lwusa.materiel_code AS materielCode, |
|
|
|
lwusa.materiel_name, |
|
|
|
lwusa.materiel_name AS materielName, |
|
|
|
ldsl.quantity_stock, |
|
|
|
ldsl.quantity_stock AS quantityStock, |
|
|
|
ldsl.order_code, |
|
|
|
ldsl.order_code AS orderCode, |
|
|
|
ldsl.market_name, |
|
|
|
ldsl.market_name AS marketName, |
|
|
|
lwusa.market_id, |
|
|
|
lwusa.market_id AS marketId, |
|
|
|
lwusa.incoming_batch, |
|
|
|
lwusa.incoming_batch AS incomingBatch, |
|
|
|
sum(lwusa.num) |
|
|
|
sum(lwusa.num) AS totalNum, |
|
|
|
|
|
|
|
if(ldsl.quantity_stock = sum(lwusa.num),1,0) AS complete, |
|
|
|
|
|
|
|
3 AS goodsType |
|
|
|
FROM |
|
|
|
FROM |
|
|
|
logpm_warehouse_updown_stockup_area AS lwusa |
|
|
|
logpm_warehouse_updown_stockup_area AS lwusa |
|
|
|
LEFT JOIN logpm_distribution_stock_list AS ldsl ON lwusa.association_value = ldsl.cargo_number |
|
|
|
LEFT JOIN logpm_distribution_stock_list AS ldsl ON lwusa.association_value = ldsl.cargo_number |
|
|
|