|
@@ -60,7 +60,7 @@
|
|
|
and a.school_id = #{schoolId}
|
|
|
</if>
|
|
|
<if test="userInfo != null and userInfo != ''">
|
|
|
- and a.login_name like concat('%', #{userInfo} , '%') or a.real_name like concat('%', #{userInfo} , '%') or a.mobile_number like concat('%', #{userInfo} , '%')
|
|
|
+ and (a.login_name like concat('%', #{userInfo} , '%') or a.real_name like concat('%', #{userInfo} , '%') or a.mobile_number like concat('%', #{userInfo} , '%'))
|
|
|
</if>
|
|
|
<if test="orgId != null and orgId != ''">
|
|
|
and a.org_id = #{orgId}
|
|
@@ -68,7 +68,7 @@
|
|
|
<if test="roleId != null and roleId != ''">
|
|
|
and a.id in (select user_id from sys_user_role b where b.role_id = #{roleId})
|
|
|
</if>
|
|
|
- <if test="enable != null">
|
|
|
+ <if test="enable != null and enable != '' or enable == 0">
|
|
|
and a.enable = #{enable}
|
|
|
</if>
|
|
|
</where>
|
|
@@ -98,7 +98,7 @@
|
|
|
<if test="roleId != null and roleId != ''">
|
|
|
and a.id in (select user_id from sys_user_role b where b.role_id = #{roleId})
|
|
|
</if>
|
|
|
- <if test="enable != null">
|
|
|
+ <if test="enable != null and enable != '' or enable == 0">
|
|
|
and a.enable = #{enable}
|
|
|
</if>
|
|
|
<if test="loginName != null and loginName != ''">
|
|
@@ -164,7 +164,7 @@
|
|
|
<if test="realName != null and realName != ''">
|
|
|
and a.real_name like concat('%', #{realName} , '%')
|
|
|
</if>
|
|
|
- <if test="enable != null">
|
|
|
+ <if test="enable != null and enable != '' or enable == 0">
|
|
|
and a.enable = #{enable}
|
|
|
</if>
|
|
|
</where>
|