This commit is contained in:
77
2024-08-03 19:56:22 +08:00
parent 4fc5fdc77f
commit 3706411b80
14 changed files with 150 additions and 1 deletions

View File

@@ -87,6 +87,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</if>
</select>
<select id="pageAppV2" resultType="com.ruoyi.cai.dto.app.vo.AnchorListVo">
select t1.id as user_id,t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t1.city_id,t1.city,t2.give_score,
t2.price,t3.status as online
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 and t2.index_display = 1 and t1.usercode > 100
<if test="query.cityId != null and query.cityId != ''">
and t1.city_id = #{query.cityId}
</if>
<if test="query.cityId != null and query.cityId != ''">
and t1.city_id = #{query.cityId}
</if>
<if test="query.onlineStatus != null">
and t3.status = #{query.onlineStatus}
</if>
<if test="query.openVideoStatus != null">
and t2.open_video_status = #{query.openVideoStatus}
</if>
<if test="query.type != null">
<if test="query.type == 0">
order by t2.top_show_rank desc
</if>
<if test="query.type == 1">
order by t3.top_show_rank desc
</if>
<if test="query.type == 2">
order by t2.top_show_rank desc
</if>
<if test="query.type == 3">
order by t2.top_show_rank desc
</if>
</if>
</select>
</mapper>