综合查询保有量

This commit is contained in:
hongchao 2025-11-11 11:59:13 +08:00
parent aa913f67dc
commit d2267cd583
1 changed files with 3 additions and 2 deletions

View File

@ -512,8 +512,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id LEFT JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id
LEFT JOIN ma_type_manage mtm ON mt4.type_id = mtm.type_id LEFT JOIN ma_type_manage mtm ON mt4.type_id = mtm.type_id
WHERE mt.del_flag = '0' WHERE mt.del_flag = '0'
and mt.is_show = '1' and mt4.type_id is not null and mt3.type_id is not null
<!-- <if test="userId != null">--> <!-- <if test="userId != null">-->
<!-- and mtm.user_id = #{userId}--> <!-- and mtm.user_id = #{userId}-->
<!-- </if>--> <!-- </if>-->
@ -559,6 +559,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND mt.jiju_type = #{jiJuType} AND mt.jiju_type = #{jiJuType}
</if> </if>
HAVING allNum > 0 HAVING allNum > 0
order by mt4.type_name, mt3.type_name, mt2.type_name, mt.type_name
</select> </select>
<select id="getStatisticsList" resultType="com.bonus.material.basic.domain.ProjUsingRecord"> <select id="getStatisticsList" resultType="com.bonus.material.basic.domain.ProjUsingRecord">
SELECT SELECT