fix(system): 修复选人组件 GROUP BY 不兼容问题
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+2
-3
@@ -328,8 +328,8 @@
|
|||||||
|
|
||||||
<!--根据部门id获取用户数据-->
|
<!--根据部门id获取用户数据-->
|
||||||
<select id="queryUserByDeptAndROle" resultType="org.jeecg.modules.system.entity.SysUser">
|
<select id="queryUserByDeptAndROle" resultType="org.jeecg.modules.system.entity.SysUser">
|
||||||
SELECT
|
SELECT DISTINCT
|
||||||
u.*
|
u.*
|
||||||
FROM
|
FROM
|
||||||
sys_user u
|
sys_user u
|
||||||
INNER JOIN
|
INNER JOIN
|
||||||
@@ -338,6 +338,5 @@
|
|||||||
where u.user_security_level >= #{secretLevel}
|
where u.user_security_level >= #{secretLevel}
|
||||||
and tem.dept_id LIKE CONCAT('%', #{deptId}, '%')
|
and tem.dept_id LIKE CONCAT('%', #{deptId}, '%')
|
||||||
and tem.role_id = #{roleId}
|
and tem.role_id = #{roleId}
|
||||||
GROUP BY u.username
|
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user