From 22a2bac03f9fd8f5efd60b58accfcd6211d6bef9 Mon Sep 17 00:00:00 2001 From: mashuai Date: Thu, 11 Dec 2025 16:20:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/material/clz/MaterialMachineMapper.xml | 9 +++++++++ 1 file changed, 9 insertions(+) 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,