添加用户直播间在线人数字段
This commit is contained in:
@@ -35,6 +35,15 @@ public class HostInfoDTO extends PageRequest implements Serializable {
|
|||||||
@ApiModelProperty(value = "主播等级", example = "A")
|
@ApiModelProperty(value = "主播等级", example = "A")
|
||||||
private String hostsLevel;
|
private String hostsLevel;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "在线人数", example = "1000")
|
||||||
|
private Integer onlineFans;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "在线人数最大值", example = "5000")
|
||||||
|
private Integer onlineFansMax;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "在线人数最小值", example = " 10")
|
||||||
|
private Integer onlineFansMin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主播金币
|
* 主播金币
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -38,6 +39,9 @@ public class NewHosts {
|
|||||||
*/
|
*/
|
||||||
private Integer invitationType;
|
private Integer invitationType;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "在线人数", example = "1000")
|
||||||
|
private Integer onlineFans;
|
||||||
/**
|
/**
|
||||||
* 粉丝数量
|
* 粉丝数量
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package com.yupi.springbootinit.model.vo.hosts;
|
|||||||
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
@@ -72,6 +73,10 @@ public class NewHostsVO {
|
|||||||
@TableId(value = "hosts_kind")
|
@TableId(value = "hosts_kind")
|
||||||
private String hostsKind;
|
private String hostsKind;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "在线人数", example = "1000")
|
||||||
|
@TableId(value = "online_fans")
|
||||||
|
private Integer onlineFans;
|
||||||
/**
|
/**
|
||||||
* 数据插入时间
|
* 数据插入时间
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
<result column="creator" jdbcType="BIGINT" property="creator" />
|
<result column="creator" jdbcType="BIGINT" property="creator" />
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
<result column="updater" jdbcType="VARCHAR" property="updater" />
|
<result column="updater" jdbcType="VARCHAR" property="updater" />
|
||||||
|
<result column="online_fans" jdbcType="INTEGER" property="onlineFans"/>
|
||||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@@ -34,6 +35,7 @@
|
|||||||
<result column="yesterday_coins" jdbcType="INTEGER" property="yesterdayCoins" />
|
<result column="yesterday_coins" jdbcType="INTEGER" property="yesterdayCoins" />
|
||||||
<result column="country" jdbcType="VARCHAR" property="country" />
|
<result column="country" jdbcType="VARCHAR" property="country" />
|
||||||
<result column="hosts_kind" jdbcType="VARCHAR" property="hostsKind" />
|
<result column="hosts_kind" jdbcType="VARCHAR" property="hostsKind" />
|
||||||
|
<result column="online_fans" jdbcType="INTEGER" property="onlineFans"/>
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@@ -242,7 +244,7 @@
|
|||||||
|
|
||||||
<select id="selectPageByCondition" resultMap="HostInfoVo">
|
<select id="selectPageByCondition" resultMap="HostInfoVo">
|
||||||
select id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum,
|
select id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum,
|
||||||
yesterday_coins,create_time, country, hosts_kind from new_hosts where
|
yesterday_coins,create_time, country, online_fans,hosts_kind from new_hosts where
|
||||||
new_hosts.creator=#{hostInfoDTO.creator}
|
new_hosts.creator=#{hostInfoDTO.creator}
|
||||||
and new_hosts.tenant_id=#{hostInfoDTO.tenantId}
|
and new_hosts.tenant_id=#{hostInfoDTO.tenantId}
|
||||||
<if test="hostInfoDTO.country!= '' and hostInfoDTO.country != null">
|
<if test="hostInfoDTO.country!= '' and hostInfoDTO.country != null">
|
||||||
@@ -284,7 +286,7 @@
|
|||||||
<if test="hostInfoDTO.fansMin != null and hostInfoDTO.fansMax != null " >
|
<if test="hostInfoDTO.fansMin != null and hostInfoDTO.fansMax != null " >
|
||||||
and new_hosts.fans between #{hostInfoDTO.fansMin,jdbcType=INTEGER} and #{hostInfoDTO.fansMax,jdbcType=INTEGER}
|
and new_hosts.fans between #{hostInfoDTO.fansMin,jdbcType=INTEGER} and #{hostInfoDTO.fansMax,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
<!-- 主播粉关注筛选-->
|
<!-- 主播关注筛选-->
|
||||||
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax == null ">
|
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax == null ">
|
||||||
and new_hosts.fllowernum >=#{hostInfoDTO.fllowernumMin,jdbcType=INTEGER}
|
and new_hosts.fllowernum >=#{hostInfoDTO.fllowernumMin,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
@@ -294,6 +296,16 @@
|
|||||||
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax != null " >
|
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax != null " >
|
||||||
and new_hosts.fllowernum between #{hostInfoDTO.fllowernumMin,jdbcType=INTEGER} and #{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
|
and new_hosts.fllowernum between #{hostInfoDTO.fllowernumMin,jdbcType=INTEGER} and #{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
|
||||||
</if>
|
</if>
|
||||||
|
<!-- 主播在线人数筛选-->
|
||||||
|
<if test="hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax == null ">
|
||||||
|
and new_hosts.online_fans >=#{hostInfoDTO.onlineFansMin,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="hostInfoDTO.onlineFansMax != null and hostInfoDTO.onlineFansMin == null ">
|
||||||
|
and new_hosts.online_fans <=#{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
|
<if test="hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax != null " >
|
||||||
|
and new_hosts.online_fans between #{hostInfoDTO.onlineFansMin,jdbcType=INTEGER} and #{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
|
||||||
|
</if>
|
||||||
<!-- 邀请类筛选 -->
|
<!-- 邀请类筛选 -->
|
||||||
<if test="hostInfoDTO.invitationType != null">
|
<if test="hostInfoDTO.invitationType != null">
|
||||||
and new_hosts.Invitation_type =#{hostInfoDTO.invitationType,jdbcType=INTEGER}
|
and new_hosts.Invitation_type =#{hostInfoDTO.invitationType,jdbcType=INTEGER}
|
||||||
@@ -313,7 +325,7 @@
|
|||||||
</if>
|
</if>
|
||||||
<!-- 主播金币条件排序 -->
|
<!-- 主播金币条件排序 -->
|
||||||
<if test="hostInfoDTO.sortName == 'hostsCoins' and hostInfoDTO.sort != null">
|
<if test="hostInfoDTO.sortName == 'hostsCoins' and hostInfoDTO.sort != null">
|
||||||
new_hosts.hostsCoins ${hostInfoDTO.sort}
|
new_hosts.hosts_coins ${hostInfoDTO.sort}
|
||||||
</if>
|
</if>
|
||||||
<!-- 主播粉丝条件排序 -->
|
<!-- 主播粉丝条件排序 -->
|
||||||
<if test="hostInfoDTO.sortName == 'fans' and hostInfoDTO.sort != null">
|
<if test="hostInfoDTO.sortName == 'fans' and hostInfoDTO.sort != null">
|
||||||
@@ -323,6 +335,10 @@
|
|||||||
<if test="hostInfoDTO.sortName == 'fllowernum' and hostInfoDTO.sort != null">
|
<if test="hostInfoDTO.sortName == 'fllowernum' and hostInfoDTO.sort != null">
|
||||||
new_hosts.fllowernum ${hostInfoDTO.sort}
|
new_hosts.fllowernum ${hostInfoDTO.sort}
|
||||||
</if>
|
</if>
|
||||||
|
<!-- 主播直播间在线数量排序 -->
|
||||||
|
<if test="hostInfoDTO.sortName == 'onlineFans' and hostInfoDTO.sort != null">
|
||||||
|
new_hosts.online_fnas ${hostInfoDTO.sort}
|
||||||
|
</if>
|
||||||
</when>
|
</when>
|
||||||
</choose>
|
</choose>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user