123
This commit is contained in:
@@ -14,14 +14,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="giveScore" column="give_score"/>
|
||||
<result property="serviceCount" column="service_count"/>
|
||||
<result property="serviceTime" column="service_time"/>
|
||||
<result property="giftInviteRate" column="gift_invite_rate"/>
|
||||
<result property="videoRate" column="video_rate"/>
|
||||
<result property="giftRate" column="gift_rate"/>
|
||||
<result property="recommendStatus" column="recommend_status"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="jifen" column="jifen"/>
|
||||
<result property="lastJifen" column="last_jifen"/>
|
||||
</resultMap>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.AnchorAdminVo">
|
||||
select
|
||||
@@ -30,13 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
</select>
|
||||
<select id="pageApp" resultType="com.ruoyi.cai.dto.app.vo.AnchorListVo">
|
||||
select t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t2.give_score
|
||||
select t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t1.city_id,t1.city,t2.give_score
|
||||
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
|
||||
<if test="query.city != null and query.city != ''">
|
||||
and t1.city = #{query.city}
|
||||
<if test="query.cityId != null and query.cityId != ''">
|
||||
and t1.city_id = #{query.cityId}
|
||||
</if>
|
||||
<if test="query.type != null">
|
||||
<if test="query.type == 1">
|
||||
|
||||
@@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
</select>
|
||||
<select id="pageApp" resultType="com.ruoyi.cai.dto.app.vo.user.UserListVo">
|
||||
select t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t1.age,t2.last_live_time
|
||||
select t1.avatar,t1.gender,t1.city,t1.city_id,t1.nickname,t1.usercode,t1.age,t2.last_live_time
|
||||
from cai_user t1
|
||||
join cai_user_online t2 on t1.id = t2.user_id
|
||||
where t1.status = 0
|
||||
@@ -43,12 +43,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by t2.last_live_time desc
|
||||
</select>
|
||||
<select id="greetPageApp" resultType="com.ruoyi.cai.dto.app.vo.user.UserListVo">
|
||||
select t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t1.age,t2.last_live_time
|
||||
select t1.avatar,t1.gender,t1.city,t1.city_id,t1.nickname,t1.usercode,t1.age,t2.last_live_time
|
||||
from cai_user t1
|
||||
join cai_user_online t2 on t1.id = t2.user_id
|
||||
where t1.status = 0
|
||||
<if test="query.city != null and query.city != ''">
|
||||
and t1.city = #{query.city}
|
||||
<if test="query.cityId != null and query.cityId != ''">
|
||||
and t1.city_id = #{query.cityId}
|
||||
</if>
|
||||
order by t2.last_live_time desc
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user