|
|
|
@ -625,20 +625,10 @@
|
|
|
|
|
and ldrs.stock_article_status in (1, 3) |
|
|
|
|
) orderNum, |
|
|
|
|
( |
|
|
|
|
select COUNT(ldrp.id) |
|
|
|
|
from logpm_distribution_reservation dr |
|
|
|
|
LEFT JOIN logpm_distribution_reservation_package ldrp |
|
|
|
|
on ldrp.reservation_id = dr.id |
|
|
|
|
where dr.id = #{param.reservationId} |
|
|
|
|
and ldrp.packet_bar_status in (1, 3) |
|
|
|
|
ldr.reservation_num + ldr.reservation_stock_list_num |
|
|
|
|
) planNum, |
|
|
|
|
( |
|
|
|
|
select sum(ldrs.reservation_num) |
|
|
|
|
from logpm_distribution_reservation dr |
|
|
|
|
LEFT JOIN logpm_distribution_reservation_stocklist ldrs |
|
|
|
|
on ldrs.reservation_id = dr.id |
|
|
|
|
where dr.id = #{param.reservationId} |
|
|
|
|
and ldrs.stock_list_status in (1, 3) |
|
|
|
|
ldr.reservation_stock_list_num |
|
|
|
|
) inventoryNub |
|
|
|
|
from logpm_distribution_reservation ldr |
|
|
|
|
LEFT JOIN logpm_distribution_stockup_info ldsi on ldsi.reservation_id = ldr.id AND ldsi.stock_status != 4 |
|
|
|
|