huminmin
2026-04-23 cf456d684cadd84a97e8cb417e0613f81a3d47cd
src/main/resources/mapper/system/SysUserDeptMapper.xml
@@ -13,7 +13,7 @@
            sys_user_dept T1
        LEFT JOIN sys_dept T2 ON T1.dept_id = T2.dept_id
        <where>
            T1.dept_id IN (select dept_id from sys_dept where parent_id = 100)
            T1.dept_id IN (select dept_id from sys_dept where parent_id != 0)
            <if test="userDeptVo.userId != null">
                AND T1.user_id = #{userDeptVo.userId}
            </if>