From c2c9e3b1039c0a5223801759475112c6da9a3a3d Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 25 二月 2025 14:59:49 +0800 Subject: [PATCH] 项目相关联系人调整 --- system/src/main/resources/mapper/system/SysDeptMapper.xml | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/system/src/main/resources/mapper/system/SysDeptMapper.xml b/system/src/main/resources/mapper/system/SysDeptMapper.xml index c5dd0d0..f4faa92 100644 --- a/system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -47,6 +47,18 @@ order by d.parent_id, d.order_num </select> + <select id="selectDeptListNoAuth" parameterType="SysDept" resultMap="SysDeptResult"> + <include refid="selectDeptVo"/> + where d.del_flag = '0' + <if test="parentId != null"> + AND FIND_IN_SET(#{parentId}, ancestors) > 0 + </if> + <if test="deptName != null and deptName != ''"> + AND dept_name like concat('%', #{deptName}, '%') + </if> + order by d.parent_id, d.order_num + </select> + <select id="selectDeptListByRoleId" resultType="Long"> select d.dept_id from sys_dept d -- Gitblit v1.8.0