|
|
|
|
@@ -18,6 +18,7 @@
|
|
|
|
|
<result column="creator" jdbcType="BIGINT" property="creator" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="updater" jdbcType="VARCHAR" property="updater" />
|
|
|
|
|
<result column="online_fans" jdbcType="INTEGER" property="onlineFans"/>
|
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
@@ -34,6 +35,7 @@
|
|
|
|
|
<result column="yesterday_coins" jdbcType="INTEGER" property="yesterdayCoins" />
|
|
|
|
|
<result column="country" jdbcType="VARCHAR" property="country" />
|
|
|
|
|
<result column="hosts_kind" jdbcType="VARCHAR" property="hostsKind" />
|
|
|
|
|
<result column="online_fans" jdbcType="INTEGER" property="onlineFans"/>
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
@@ -242,7 +244,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectPageByCondition" resultMap="HostInfoVo">
|
|
|
|
|
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}
|
|
|
|
|
and new_hosts.tenant_id=#{hostInfoDTO.tenantId}
|
|
|
|
|
<if test="hostInfoDTO.country!= '' and hostInfoDTO.country != null">
|
|
|
|
|
@@ -284,7 +286,7 @@
|
|
|
|
|
<if test="hostInfoDTO.fansMin != null and hostInfoDTO.fansMax != null " >
|
|
|
|
|
and new_hosts.fans between #{hostInfoDTO.fansMin,jdbcType=INTEGER} and #{hostInfoDTO.fansMax,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 主播粉关注筛选-->
|
|
|
|
|
<!-- 主播关注筛选-->
|
|
|
|
|
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax == null ">
|
|
|
|
|
and new_hosts.fllowernum >=#{hostInfoDTO.fllowernumMin,jdbcType=INTEGER}
|
|
|
|
|
</if>
|
|
|
|
|
@@ -294,6 +296,16 @@
|
|
|
|
|
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax != null " >
|
|
|
|
|
and new_hosts.fllowernum between #{hostInfoDTO.fllowernumMin,jdbcType=INTEGER} and #{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
|
|
|
|
|
</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">
|
|
|
|
|
and new_hosts.Invitation_type =#{hostInfoDTO.invitationType,jdbcType=INTEGER}
|
|
|
|
|
@@ -313,7 +325,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 主播金币条件排序 -->
|
|
|
|
|
<if test="hostInfoDTO.sortName == 'hostsCoins' and hostInfoDTO.sort != null">
|
|
|
|
|
new_hosts.hostsCoins ${hostInfoDTO.sort}
|
|
|
|
|
new_hosts.hosts_coins ${hostInfoDTO.sort}
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 主播粉丝条件排序 -->
|
|
|
|
|
<if test="hostInfoDTO.sortName == 'fans' and hostInfoDTO.sort != null">
|
|
|
|
|
@@ -323,6 +335,10 @@
|
|
|
|
|
<if test="hostInfoDTO.sortName == 'fllowernum' and hostInfoDTO.sort != null">
|
|
|
|
|
new_hosts.fllowernum ${hostInfoDTO.sort}
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 主播直播间在线数量排序 -->
|
|
|
|
|
<if test="hostInfoDTO.sortName == 'onlineFans' and hostInfoDTO.sort != null">
|
|
|
|
|
new_hosts.online_fnas ${hostInfoDTO.sort}
|
|
|
|
|
</if>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</select>
|
|
|
|
|
|