This commit is contained in:
张良(004796)
2024-01-30 18:29:33 +08:00
parent 21ab6a06cd
commit 5cbed4c929
14 changed files with 221 additions and 38 deletions

View File

@@ -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>