From 8a362ef6953e990b4f940672c6abfc4b621bddee Mon Sep 17 00:00:00 2001
From: hongchao <3228015117@qq.com>
Date: Fri, 10 Oct 2025 12:08:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../material/clz/MaterialMachineMapper.xml | 23 +++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
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 5e9c7694..74db825e 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
@@ -1369,6 +1369,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND sai.end_time IS NULL
AND sai.back_id IS NULL
AND bp.external_id IS NOT NULL
+ and sd.dept_id not in (342,345,347,348,101)
AND sd.dept_name like concat('%',#{impUnitName},'%')
@@ -1437,6 +1438,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sai.`status` = '0'
AND sai.end_time IS NULL
AND sai.back_id IS NULL
+ and sd.dept_id not in (342,345,347,348,101)
AND sd.dept_name like concat('%',#{impUnitName},'%')
@@ -1524,6 +1526,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND sai.back_id IS NULL
AND bu.unit_name is not null
AND bp.external_id is not NULL
+ and sd.dept_id not in (342,345,347,348,101)
AND sd.dept_name LIKE CONCAT('%', #{impUnitName}, '%')
@@ -1601,6 +1604,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_dept sd ON sd.dept_id = bp.imp_unit
WHERE
sd.dept_name IS NOT NULL
+ and sd.dept_id not in (342,345,347,348,101)
AND sd.dept_name LIKE CONCAT('%', #{impUnitName}, '%')
@@ -1617,6 +1621,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND bp.imp_unit = #{impUnit}
GROUP BY sd.dept_name
+ ORDER BY
+ sd.order_num