修复bug
This commit is contained in:
@@ -39,13 +39,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="totalNetWeight" column="total_net_weight"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 查询各个库区中不同类型的钢卷分布情况 -->
|
||||
<!-- 查询各个库区中钢卷的汇总分布情况(按仓库汇总) -->
|
||||
<select id="getDistributionByWarehouse" resultType="java.util.Map">
|
||||
SELECT
|
||||
w.warehouse_id,
|
||||
w.warehouse_name,
|
||||
mc.item_type,
|
||||
mc.item_id,
|
||||
COUNT(mc.coil_id) as coil_count,
|
||||
COALESCE(SUM(mc.gross_weight), 0) as total_gross_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">
|
||||
AND mc.item_id = #{itemId}
|
||||
</if>
|
||||
GROUP BY w.warehouse_id, w.warehouse_name, mc.item_type, mc.item_id
|
||||
ORDER BY w.warehouse_id, mc.item_type, mc.item_id
|
||||
GROUP BY w.warehouse_id, w.warehouse_name
|
||||
ORDER BY w.warehouse_id
|
||||
</select>
|
||||
<select id="selectVoPagePlus" resultType="com.klp.domain.vo.WmsMaterialCoilVo">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user