fix(system): 修复选人组件 GROUP BY 不兼容问题

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wsm
2026-06-16 11:18:18 +08:00
co-authored by Claude Opus 4.7
parent 9df037ac48
commit d45e7bff9d
@@ -328,7 +328,7 @@
<!--根据部门id获取用户数据-->
<select id="queryUserByDeptAndROle" resultType="org.jeecg.modules.system.entity.SysUser">
SELECT
SELECT DISTINCT
u.*
FROM
sys_user u
@@ -338,6 +338,5 @@
where u.user_security_level >= #{secretLevel}
and tem.dept_id LIKE CONCAT('%', #{deptId}, '%')
and tem.role_id = #{roleId}
GROUP BY u.username
</select>
</mapper>