This commit is contained in:
parent
aa9fbe8759
commit
22a2bac03f
|
|
@ -1483,6 +1483,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
LEFT JOIN ma_type mt3 ON mt3.type_id = mt2.parent_id
|
||||
LEFT JOIN ma_type mt4 ON mt4.type_id = mt3.parent_id
|
||||
WHERE mt.`level` = 4 and mt.del_flag = '0'
|
||||
<if test="unitValue != null and unitValue != ''">
|
||||
AND mt.unit_value = #{unitValue}
|
||||
</if>
|
||||
GROUP BY mt.type_id,
|
||||
subquery1.proId
|
||||
HAVING allNum > 0
|
||||
|
|
@ -1576,6 +1579,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="projectName != null and projectName !=''">
|
||||
AND bp.pro_name like concat ('%', #{projectName}, '%')
|
||||
</if>
|
||||
<if test="unitValue != null and unitValue != ''">
|
||||
AND mt.unit_value = #{unitValue}
|
||||
</if>
|
||||
GROUP BY
|
||||
mt.type_id, bu.unit_id, bp.pro_id
|
||||
</select>
|
||||
|
|
@ -2485,6 +2491,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="projectName != null and projectName !=''">
|
||||
AND bp.pro_name like concat ('%', #{projectName}, '%')
|
||||
</if>
|
||||
<if test="unitValue != null and unitValue != ''">
|
||||
AND mt.unit_value = #{unitValue}
|
||||
</if>
|
||||
GROUP BY
|
||||
mt.type_id,
|
||||
bp.pro_id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue