V13
This commit is contained in:
@@ -87,5 +87,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="rankTotalPay" resultType="com.ruoyi.cai.dto.app.vo.rank.RankNodeRecharge">
|
||||
select
|
||||
t2.id as user_id,
|
||||
t2.avatar as avatar,
|
||||
t2.nickname as nickname,
|
||||
t1.total_buy_money as money
|
||||
from cai_account t1
|
||||
join cai_user t2 on t1.user_id = t2.id
|
||||
order by t1.total_buy_coin desc
|
||||
limit #{limit}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.ruoyi.cai.mapper.LoveRankTodayMapper">
|
||||
|
||||
<delete id="insRank">
|
||||
update cai_love_rank_today
|
||||
set num = num + #{value}
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<select id="homePage" resultType="com.ruoyi.cai.dto.app.vo.AnchorListVo">
|
||||
select
|
||||
t1.id as user_id,t1.avatar,t1.gender,t1.nickname,t1.usercode,t2.service_time,
|
||||
t1.city_id,t1.city,t2.give_score,
|
||||
t2.price,t3.status as online
|
||||
from cai_love_rank_today w
|
||||
join cai_user t1 on t1.id = w.user_id
|
||||
join cai_anchor t2 on t2.user_id = w.user_id
|
||||
join cai_user_online t3 on t3.user_id = w.user_id
|
||||
where t1.status = 0 and t1.is_anchor = 1 and t2.index_display = 1 and t1.usercode > 100
|
||||
and w.rank_time = #{monday}
|
||||
and t3.status = 1
|
||||
and t2.open_video_status = 1
|
||||
<if test="!query.hiddenStatusUser">
|
||||
and t2.hidden_status = 0
|
||||
</if>
|
||||
<if test="query.price != null and query.price != 0">
|
||||
and t2.price = #{query.price}
|
||||
</if>
|
||||
order by w.num desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user