123
This commit is contained in:
@@ -33,16 +33,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
from cai_user t1
|
||||
join cai_anchor t2 on t1.id = t2.user_id
|
||||
join cai_user_online t3 on t1.id = t3.user_id
|
||||
where t1.status = 0 and t1.is_anchor = 1
|
||||
where t1.status = 0 and t1.is_anchor = 1 and t2.index_display = 1 and t1.id > 100
|
||||
<if test="query.cityId != null and query.cityId != ''">
|
||||
and t1.city_id = #{query.cityId}
|
||||
</if>
|
||||
<if test="query.type != null">
|
||||
<if test="query.type == 0">
|
||||
order by t2.recommend_status desc
|
||||
</if>
|
||||
<if test="query.type == 1">
|
||||
order by t3.last_live_time desc
|
||||
order by t3.last_live_time desc,t2.recommend_status desc
|
||||
</if>
|
||||
<if test="query.type == 2">
|
||||
order by t1.create_time desc
|
||||
order by t1.create_time desc, t2.recommend_status desc
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user