|
|
@ -75,13 +75,6 @@ |
|
|
|
from admin |
|
|
|
LEFT JOIN role on admin.role_id=role.id |
|
|
|
<where> |
|
|
|
<if test="markets != null and markets.size() > 0 and '总部' not in markets"> |
|
|
|
AND ( |
|
|
|
<foreach collection="markets" item="market" open="" close="" separator=" OR "> |
|
|
|
admin.market LIKE CONCAT('%', #{market}, '%') |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|
<if test="account!=null and account.length>0"> |
|
|
|
and admin.account=#{account} |
|
|
|
</if> |
|
|
@ -91,6 +84,13 @@ |
|
|
|
<if test="postiton!=null and postiton.length>0"> |
|
|
|
and admin.postiton=#{postiton} |
|
|
|
</if> |
|
|
|
<if test="markets != null and markets.size() > 0 and '总部' not in markets"> |
|
|
|
AND ( |
|
|
|
<foreach collection="markets" item="market" open="" close="" separator=" OR "> |
|
|
|
admin.market LIKE CONCAT('%', #{market}, '%') |
|
|
|
</foreach> |
|
|
|
) |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
order by admin.admin_status desc |
|
|
|
</select> |
|
|
|