|
|
|
@ -353,10 +353,12 @@
|
|
|
|
|
FROM |
|
|
|
|
logpm_warehouse_updown_goods lwug |
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list ldpl ON ldpl.id = lwug.association_id |
|
|
|
|
LEFT JOIN logpm_distribution_stock_article ldsa ON ldsa.id = ldpl.stock_article_id |
|
|
|
|
WHERE |
|
|
|
|
lwug.association_type != 4 |
|
|
|
|
AND ldpl.conditions = 2 |
|
|
|
|
AND ldpl.warehouse_id = #{warehouseId} |
|
|
|
|
AND ldsa.mall_name = #{mallName} |
|
|
|
|
GROUP BY |
|
|
|
|
ldpl.material_code |
|
|
|
|
) AS t1 ON t.cargo_number = t1.material_code |
|
|
|
|