From 1a2311bfe7c6880658c87d425dbf2ac4632c1ab0 Mon Sep 17 00:00:00 2001
From: du <1725534722@qq.com>
Date: Tue, 10 Dec 2024 16:02:01 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ruoyi-admin/src/main/resources/mapper/UnitMapper.xml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml
index 6cb81dd..dd7ed3c 100644
--- a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml
+++ b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml
@@ -222,7 +222,7 @@
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
WHERE
d.dept_id IS NOT NULL
- AND d.parent_id != 0
+
GROUP BY
d.dept_id,
d.parent_id,
@@ -256,7 +256,7 @@
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
WHERE
d.dept_id IS NOT NULL
- AND d.parent_id != 0
+
GROUP BY
d.dept_id,
d.parent_id,
@@ -290,7 +290,7 @@
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
WHERE
d.dept_id IS NOT NULL
- AND d.parent_id != 0
+
GROUP BY
d.dept_id,
d.parent_id,
@@ -324,7 +324,7 @@
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
WHERE
d.dept_id IS NOT NULL
- AND d.parent_id != 0
+
GROUP BY
d.dept_id,
d.parent_id,
@@ -358,7 +358,7 @@
LEFT JOIN sys_dept d ON b.dept_id = d.dept_id
WHERE
d.dept_id IS NOT NULL
- AND d.parent_id != 0
+
GROUP BY
d.dept_id,
d.parent_id,
From 4839b33ab34813caec58a831f6bfff1a9c37b4d2 Mon Sep 17 00:00:00 2001
From: du <1725534722@qq.com>
Date: Wed, 11 Dec 2024 09:19:54 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=9E=B6=E6=9E=84?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/main/resources/mapper/UnitMapper.xml | 58 ++++++++++---------
1 file changed, 31 insertions(+), 27 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml
index dd7ed3c..e8b55bb 100644
--- a/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml
+++ b/ruoyi-admin/src/main/resources/mapper/UnitMapper.xml
@@ -210,7 +210,7 @@
where nick_name = #{part}