|
|
|
@ -399,21 +399,27 @@
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="listAllocationOrder" resultType="com.logpm.distribution.vo.DistributionStockListAllocationVO"> |
|
|
|
|
select lwug.position_code allocationTitle, |
|
|
|
|
SELECT |
|
|
|
|
lwga.qr_code AS allocationTitle, |
|
|
|
|
lwug.allocation_id, |
|
|
|
|
ldsi.market_name marketName, |
|
|
|
|
sum(lwug.num) num, |
|
|
|
|
lwug.create_time createTime, |
|
|
|
|
ldsi.cargo_unit cargoUnit, |
|
|
|
|
ldsi.market_name AS marketName, |
|
|
|
|
sum( lwug.num ) AS num, |
|
|
|
|
lwug.create_time AS createTime, |
|
|
|
|
ldsi.cargo_unit AS cargoUnit, |
|
|
|
|
ldsi.unpack, |
|
|
|
|
ldsi.quantity_stock quantityStock, |
|
|
|
|
ldsi.unpacking_quantity unpackingQuantity, |
|
|
|
|
ldsi.description_goods descriptionGoods |
|
|
|
|
ldsi.quantity_stock AS quantityStock, |
|
|
|
|
ldsi.unpacking_quantity AS unpackingQuantity, |
|
|
|
|
ldsi.description_goods AS descriptionGoods |
|
|
|
|
FROM |
|
|
|
|
logpm_distribution_stock_list ldsi |
|
|
|
|
left join logpm_distribution_stock_list_info ldsli on ldsli.material_id = ldsi.material_id AND ldsli.warehouse_id = ldsi.warehouse_id |
|
|
|
|
AND ldsi.market_id = ldsli.market_id and ldsli.incoming_batch = ldsi.incoming_batch |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods lwug ON ldsli.parcel_list_id = lwug.association_id and lwug.association_type = '3' |
|
|
|
|
LEFT JOIN logpm_distribution_stock_list_info ldsli ON ldsli.material_id = ldsi.material_id |
|
|
|
|
AND ldsli.warehouse_id = ldsi.warehouse_id |
|
|
|
|
AND ldsi.market_id = ldsli.market_id |
|
|
|
|
AND ldsli.incoming_batch = ldsi.incoming_batch |
|
|
|
|
AND ldsli.tenant_id = '627683' |
|
|
|
|
LEFT JOIN logpm_warehouse_updown_goods lwug ON ldsli.parcel_list_id = lwug.association_id |
|
|
|
|
AND lwug.association_type = '3' |
|
|
|
|
LEFT JOIN logpm_warehouse_goods_allocation AS lwga ON lwga.id = lwug.allocation_id |
|
|
|
|
<where> |
|
|
|
|
lwug.id is not null |
|
|
|
|
<if test="param.id != null "> and ldsi.id = #{param.id}</if> |
|
|
|
|