diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml index 49f98a80..9507f939 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/clz/MaterialMachineMapper.xml @@ -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' + + AND mt.unit_value = #{unitValue} + GROUP BY mt.type_id, subquery1.proId HAVING allNum > 0 @@ -1576,6 +1579,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND bp.pro_name like concat ('%', #{projectName}, '%') + + AND mt.unit_value = #{unitValue} + GROUP BY mt.type_id, bu.unit_id, bp.pro_id @@ -2485,6 +2491,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND bp.pro_name like concat ('%', #{projectName}, '%') + + AND mt.unit_value = #{unitValue} + GROUP BY mt.type_id, bp.pro_id,