|
|
|
@ -19,8 +19,7 @@
|
|
|
|
|
FROM logpm_warehouse_goods_allocation ${ew.customSqlSegment} |
|
|
|
|
</select> |
|
|
|
|
<select id="selectnum" resultType="com.logpm.warehouse.vo.WarehouseGoodsAllocationVO"> |
|
|
|
|
SELECT COALESCE(SUM(CASE WHEN association_type = '1' THEN num END), 0) orderNum, |
|
|
|
|
COALESCE(SUM(CASE WHEN association_type = '2' THEN num END), 0) lessNum, |
|
|
|
|
SELECT COALESCE(SUM(CASE WHEN association_type = '1' THEN num END), 0) lessNum, |
|
|
|
|
COALESCE(SUM(CASE WHEN association_type = '3' THEN num END), 0) packageNum, |
|
|
|
|
COALESCE(SUM(CASE WHEN association_type = '4' THEN num END), 0) inventoryNum |
|
|
|
|
FROM logpm_warehouse_updown_goods |
|
|
|
@ -362,6 +361,15 @@
|
|
|
|
|
SELECT lwgaa.id FROM logpm_warehouse_goods_allocation lwgaa join logpm_warehouse_goods_area lwga on lwgaa.goods_area_id =lwga.id WHERE |
|
|
|
|
lwgaa.id = #{allocationId} and lwgaa.is_deleted = 0 and lwga.area_type ='1' |
|
|
|
|
</select> |
|
|
|
|
<select id="selectOrderNum" resultType="java.lang.Integer"> |
|
|
|
|
SELECT COALESCE |
|
|
|
|
( count( DISTINCT ldpl.stock_article_id), 0 ) |
|
|
|
|
FROM |
|
|
|
|
logpm_warehouse_updown_goods lwug |
|
|
|
|
JOIN logpm_distribution_parcel_list ldpl ON lwug.association_id = ldpl.id |
|
|
|
|
where lwug.allocation_id = #{id} |
|
|
|
|
and lwug.is_deleted = 0 |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper> |
|
|
|
|