|
|
@ -365,7 +365,7 @@ |
|
|
|
ldsa.total_number totalNum, |
|
|
|
ldsa.total_number totalNum, |
|
|
|
count(ldpl.id) num |
|
|
|
count(ldpl.id) num |
|
|
|
FROM logpm_distribution_stock_article ldsa |
|
|
|
FROM logpm_distribution_stock_article ldsa |
|
|
|
left join logpm_distribution_parcel_list ldpl on ldpl.order_code = ldsa.order_code |
|
|
|
left join logpm_distribution_parcel_list ldpl on ldpl.stock_article_id = ldsa.id |
|
|
|
left join logpm_warehouse_tray_goods lwtg |
|
|
|
left join logpm_warehouse_tray_goods lwtg |
|
|
|
on ldpl.order_package_code = lwtg.association_value and lwtg.association_type = 3 |
|
|
|
on ldpl.order_package_code = lwtg.association_value and lwtg.association_type = 3 |
|
|
|
left join logpm_warehouse_updown_goods lwug |
|
|
|
left join logpm_warehouse_updown_goods lwug |
|
|
@ -388,7 +388,7 @@ |
|
|
|
ldsa.total_number totalNum, |
|
|
|
ldsa.total_number totalNum, |
|
|
|
count(ldpl.id) num |
|
|
|
count(ldpl.id) num |
|
|
|
FROM logpm_distribution_stock_article ldsa |
|
|
|
FROM logpm_distribution_stock_article ldsa |
|
|
|
left join logpm_distribution_parcel_list ldpl on ldpl.order_code = ldsa.order_code |
|
|
|
left join logpm_distribution_parcel_list ldpl on ldpl.stock_article_id = ldsa.id |
|
|
|
left join logpm_warehouse_tray_goods lwtg |
|
|
|
left join logpm_warehouse_tray_goods lwtg |
|
|
|
on ldpl.order_package_code = lwtg.association_value and lwtg.association_type = 3 |
|
|
|
on ldpl.order_package_code = lwtg.association_value and lwtg.association_type = 3 |
|
|
|
left join logpm_warehouse_updown_goods lwug |
|
|
|
left join logpm_warehouse_updown_goods lwug |
|
|
|