|
|
|
@ -589,8 +589,8 @@
|
|
|
|
|
( |
|
|
|
|
select COUNT(id) |
|
|
|
|
from logpm_dis_stock_list_detail |
|
|
|
|
where reservation_id = lddd.bill_lading_id and stock_package_code is NOT null |
|
|
|
|
) realNum, |
|
|
|
|
where reservation_id = lddd.bill_lading_id and stock_package_code is NOT null AND stock_list_id = lddd.stock_list_id |
|
|
|
|
) realNum, |
|
|
|
|
lddd.id deliveryDetailsId |
|
|
|
|
from logpm_distribution_delivery_details lddd |
|
|
|
|
LEFT JOIN logpm_distribution_stock_list ldsl on lddd.stock_list_id = ldsl.id |
|
|
|
|