|
@@ -48,10 +48,10 @@
|
|
and tbu.id = #{id}
|
|
and tbu.id = #{id}
|
|
</if>
|
|
</if>
|
|
<if test="loginName != null and loginName != ''">
|
|
<if test="loginName != null and loginName != ''">
|
|
- and tbu.login_name like concat('%', #{loginName}, '%')
|
|
|
|
|
|
+ and tbu.login_name like concat(#{loginName}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
- and tbu.name like concat('%', #{name}, '%')
|
|
|
|
|
|
+ and tbu.name like concat(#{name}, '%')
|
|
</if>
|
|
</if>
|
|
<if test="enable != null and enable != '' or enable == 0">
|
|
<if test="enable != null and enable != '' or enable == 0">
|
|
and tbu.enable = #{enable}
|
|
and tbu.enable = #{enable}
|
|
@@ -59,7 +59,7 @@
|
|
</where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
|
|
</where> group by tbu.org_id,tbu.id,tbu.mobile_number,tbu.login_name,tbu.name,tbu.enable) t
|
|
<where>
|
|
<where>
|
|
<if test="role != null and role != ''">
|
|
<if test="role != null and role != ''">
|
|
- and t.roleCodeStr like concat('%', #{role}, '%')
|
|
|
|
|
|
+ and t.roleCodeStr like concat(#{role}, '%')
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by t.name
|
|
order by t.name
|