修复bug

This commit is contained in:
2025-10-31 18:06:54 +08:00
parent 41ee785cea
commit e3d2e79ea4

View File

@@ -39,13 +39,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="totalNetWeight" column="total_net_weight"/> <result property="totalNetWeight" column="total_net_weight"/>
</resultMap> </resultMap>
<!-- 查询各个库区中不同类型的钢卷分布情况 --> <!-- 查询各个库区中钢卷的汇总分布情况(按仓库汇总) -->
<select id="getDistributionByWarehouse" resultType="java.util.Map"> <select id="getDistributionByWarehouse" resultType="java.util.Map">
SELECT SELECT
w.warehouse_id, w.warehouse_id,
w.warehouse_name, w.warehouse_name,
mc.item_type,
mc.item_id,
COUNT(mc.coil_id) as coil_count, COUNT(mc.coil_id) as coil_count,
COALESCE(SUM(mc.gross_weight), 0) as total_gross_weight, COALESCE(SUM(mc.gross_weight), 0) as total_gross_weight,
COALESCE(SUM(mc.net_weight), 0) as total_net_weight COALESCE(SUM(mc.net_weight), 0) as total_net_weight
@@ -60,8 +58,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="itemId != null"> <if test="itemId != null">
AND mc.item_id = #{itemId} AND mc.item_id = #{itemId}
</if> </if>
GROUP BY w.warehouse_id, w.warehouse_name, mc.item_type, mc.item_id GROUP BY w.warehouse_id, w.warehouse_name
ORDER BY w.warehouse_id, mc.item_type, mc.item_id ORDER BY w.warehouse_id
</select> </select>
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsMaterialCoilVo"> <select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsMaterialCoilVo">
SELECT SELECT