|
|
|
@ -155,6 +155,18 @@
|
|
|
|
|
</where> |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
<select id="getLocationMarketSelectionOrder" resultType="com.logpm.distribution.vo.DistributionStockupTrayVO"> |
|
|
|
|
select DISTINCT lwug.position_code positionCode, |
|
|
|
|
lwug.allocation_id allocationId, |
|
|
|
|
lwug.allocation_title allocationTitle, |
|
|
|
|
lwug.num |
|
|
|
|
from logpm_distribution_reservation_stocklist ldrs |
|
|
|
|
LEFT JOIN logpm_distribution_stock_list ldsl on ldrs.stocklist_id = ldsl.id |
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list ldpl on ldpl.order_code = ldsl.incoming_batch |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods lwug |
|
|
|
|
on lwug.association_id = ldpl.id and lwug.association_type = '3' and ldsl.warehouse_id = lwug.warehouse_id |
|
|
|
|
where ldrs.id = #{param.deliveryDetailsId} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getLocationMarketSelection" resultType="com.logpm.distribution.vo.DistributionStockupTrayVO"> |
|
|
|
|
select lwug.position_code positionCode, |
|
|
|
@ -183,6 +195,21 @@
|
|
|
|
|
where lddd.id = #{param.deliveryDetailsId} |
|
|
|
|
GROUP BY lwug.position_code, lwug.allocation_id, lwug.allocation_title, lwug.num |
|
|
|
|
</select> |
|
|
|
|
<select id="getLocationSelectionOrder" resultType="com.logpm.distribution.vo.DistributionStockupTrayVO"> |
|
|
|
|
|
|
|
|
|
select DISTINCT lwug.position_code positionCode, |
|
|
|
|
lwug.allocation_id allocationId, |
|
|
|
|
lwug.allocation_title allocationTitle, |
|
|
|
|
lwug.num |
|
|
|
|
from logpm_distribution_delivery_details lddd |
|
|
|
|
LEFT JOIN logpm_distribution_stock_list ldsl on lddd.stock_list_id = ldsl.id |
|
|
|
|
LEFT JOIN logpm_distribution_parcel_list ldpl on ldpl.order_code = ldsl.incoming_batch |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods lwug |
|
|
|
|
on lwug.association_id = ldpl.id and lwug.association_type = '3' and ldsl.warehouse_id = lwug.warehouse_id |
|
|
|
|
where lddd.id = #{param.deliveryDetailsId} |
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="stockupOffShelf" resultType="com.logpm.distribution.vo.DistributionStockupSelfVO"> |
|
|
|
|
select lwug.id lwugId,lds.id ldsId,ldrp.packet_bar_code orderPackageCode,lwug.allocation_id allocationId |
|
|
|
|
from logpm_distribution_reservation ldr |
|
|
|
|