From 8b19f0614bd79a7bb6d524ef3245723febfb40dd Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 20 一月 2026 17:45:11 +0800
Subject: [PATCH] 【丽水】角色管理修改处理

---
 ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index ed674cf..6a0c71c 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -139,7 +139,11 @@
                d.status
         from sys_dept d
         where del_flag = 0
-          and d.dept_code = #{deptCode}
+        and d.dept_code = #{deptCode}
+        <if test="orgid != null and orgid != ''">
+            and d.orgid = #{orgid}
+        </if>
+        limit 1
     </select>
 
     <select id="checkDeptExistUser" parameterType="Long" resultType="int">

--
Gitblit v1.9.3