陈昶聿
4 天以前 57eac5a31c6823962b8e77ec8a9604e41882fb32
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -135,6 +135,7 @@
        select d.dept_id,
               d.parent_id,
               d.campusid,
               d.orgid,
               d.dept_code,
               d.dept_type,
               d.ancestors,
@@ -291,7 +292,7 @@
        and d.del_flag = 0
        and ud.del_flag = 0
        <if test="orgid != null">and d.orgid = #{orgid} and ud.orgid = #{orgid}</if>
        <if test="campusid != null">and d.campusid = #{campusid} and ud.campusid = #{campusid}</if>
        <if test="campusid != null">and d.campusid = #{campusid}</if>
        <if test="userId != null">and ud.user_id = #{userId}</if>
        <if test="deptType != null and deptType != ''">and d.dept_type = #{deptType}</if>
    </select>