Browse Source

`转码修改`

yue 5 năm trước cách đây
mục cha
commit
e98b420f19

+ 8 - 1
src/main/java/com/jeeplus/modules/sys/mapper/xml/UserMapper.xml

@@ -146,9 +146,16 @@
 		</if>
 		<if  test="roleList !=null and roleList!= ''">
 			and a.id in
-			<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
+			(
+			select user_id from sys_user_role where role_id in
+			(
+			select id from sys_role where name
+			in
+			<foreach collection="roleList" item="item" index="index" open="(" separator="," close=")">
 				#{item.name}
 			</foreach>
+			)
+			)
 		</if>
 		<!-- 如果不是超级管理员,则不显示超级管理员用户 -->
 		<if test="!currentUser.admin">