|
|
@ -435,9 +435,9 @@ |
|
|
|
<select id="selectAllocationNumInfo" resultType="com.logpm.warehouse.vo.locationsnubVO"> |
|
|
|
<select id="selectAllocationNumInfo" resultType="com.logpm.warehouse.vo.locationsnubVO"> |
|
|
|
SELECT |
|
|
|
SELECT |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation |
|
|
|
where |
|
|
|
where is_deleted = 0 |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
warehouse_id = #{warehouseId} |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="areaId != null and areaId != ''"> |
|
|
|
<if test="areaId != null and areaId != ''"> |
|
|
|
and goods_area_id = #{areaId} |
|
|
|
and goods_area_id = #{areaId} |
|
|
@ -446,7 +446,7 @@ |
|
|
|
and goods_shelf_id = #{shelfId} |
|
|
|
and goods_shelf_id = #{shelfId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
) AS cargoNub , |
|
|
|
) AS cargoNub , |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation WHERE enable_status = '2' |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation WHERE enable_status = '2' and is_deleted = 0 |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -457,7 +457,7 @@ |
|
|
|
and goods_shelf_id = #{shelfId} |
|
|
|
and goods_shelf_id = #{shelfId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
) AS disableNub, |
|
|
|
) AS disableNub, |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation WHERE allocation_status = '2' |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation WHERE allocation_status = '2' and enable_status = '1' and is_deleted = 0 |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
@ -468,7 +468,7 @@ |
|
|
|
and goods_shelf_id = #{shelfId} |
|
|
|
and goods_shelf_id = #{shelfId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
) AS employNub, |
|
|
|
) AS employNub, |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation WHERE allocation_status = '1' |
|
|
|
(SELECT count(*) FROM logpm_warehouse_goods_allocation WHERE allocation_status = '1' and enable_status = '1' and is_deleted = 0 |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
<if test="warehouseId != null and warehouseId != ''"> |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
and warehouse_id = #{warehouseId} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|