From b8126479634bc700f8a3850f39d12375b8d7795f Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 20 一月 2026 17:41:09 +0800
Subject: [PATCH] 【丽水】角色管理修改处理
---
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml | 8 +++++++-
1 files changed, 7 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..4732f10 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -139,7 +139,13 @@
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>
+ <if test="campusid != null and campusid != ''">
+ and d.campusid = #{campusid}
+ </if>
</select>
<select id="checkDeptExistUser" parameterType="Long" resultType="int">
--
Gitblit v1.9.3