@@ -429,7 +429,7 @@
sur.user_id = su.id
join sys_role sr on
sr.id = sur.role_id
- <where>
+ <where> 1 = 1
<if test="schoolId != null and schoolId != ''">
and su.school_id = #{schoolId}
</if>
@@ -439,6 +439,10 @@
#{item}
</foreach>
+ and su.enable = 1
+ and so.enable = 1
+ and sur.enable = 1
+ and sr.enable = 1
</where>
group by
su.id,