修改:
1.添加判断筛选条件为''空字符串的情况, 2.修复直播间在线人数字段排序的字段拼写错误
This commit is contained in:
@@ -260,51 +260,51 @@
|
||||
and ns.hosts_id like concat(#{hostInfoDTO.hostsId,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<!-- 今日主播金币筛选 -->
|
||||
<if test="hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax == null ">
|
||||
<if test="hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax == null and hostInfoDTO.hostsCoinsMax != '' ">
|
||||
and ns.hosts_coins >=#{hostInfoDTO.hostsCoinsMin,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.hostsCoinsMax != null and hostInfoDTO.hostsCoinsMin == null ">
|
||||
<if test="hostInfoDTO.hostsCoinsMax != null and hostInfoDTO.hostsCoinsMin == null and hostInfoDTO.hostsCoinsMin !='' ">
|
||||
and ns.hosts_coins <=#{hostInfoDTO.hostsCoinsMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax != null " >
|
||||
and ns.hosts_coins between #{hostInfoDTO.hostsCoinsMin,jdbcType=INTEGER} and #{hostInfoDTO.hostsCoinsMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<!-- 昨日主播金币筛选 -->
|
||||
<if test="hostInfoDTO.yesterdayCoinsMin != null and hostInfoDTO.yesterdayCoinsMax == null ">
|
||||
<if test="hostInfoDTO.yesterdayCoinsMin != null and hostInfoDTO.yesterdayCoinsMax == null and hostInfoDTO.yesterdayCoinsMax != ''">
|
||||
and ns.yesterday_coins >=#{hostInfoDTO.yesterdayCoinsMin,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.yesterdayCoinsMax != null and hostInfoDTO.yesterdayCoinsMin == null ">
|
||||
<if test="hostInfoDTO.yesterdayCoinsMax != null and hostInfoDTO.yesterdayCoinsMin == null and hostInfoDTO.yesterdayCoinsMin != '' ">
|
||||
and ns.yesterday_coins <=#{hostInfoDTO.yesterdayCoinsMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.yesterdayCoinsMin != null and hostInfoDTO.yesterdayCoinsMax != null " >
|
||||
and ns.yesterday_coins between #{hostInfoDTO.yesterdayCoinsMin,jdbcType=INTEGER} and #{hostInfoDTO.yesterdayCoinsMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<!-- 主播粉丝数筛选-->
|
||||
<if test="hostInfoDTO.fansMin != null and hostInfoDTO.fansMax == null ">
|
||||
<if test="hostInfoDTO.fansMin != null and hostInfoDTO.fansMax == null and hostInfoDTO.fansMax != ''">
|
||||
and ns.fans >=#{hostInfoDTO.fansMin,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.fansMax != null and hostInfoDTO.fansMin == null ">
|
||||
and ns.fans <=#{hostInfoDTO.yesterdayCoinsMax,jdbcType=INTEGER}
|
||||
<if test="hostInfoDTO.fansMax != null and hostInfoDTO.fansMin == null and hostInfoDTO.fansMin != '' ">
|
||||
and ns.fans <=#{hostInfoDTO.fansMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.fansMin != null and hostInfoDTO.fansMax != null " >
|
||||
and ns.fans between #{hostInfoDTO.fansMin,jdbcType=INTEGER} and #{hostInfoDTO.fansMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<!-- 主播关注筛选-->
|
||||
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax == null ">
|
||||
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax == null and hostInfoDTO.fllowernumMax != ''">
|
||||
and ns.fllowernum >=#{hostInfoDTO.fllowernumMin,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.fllowernumMax != null and hostInfoDTO.fllowernumMin == null ">
|
||||
<if test="hostInfoDTO.fllowernumMax != null and hostInfoDTO.fllowernumMin == null and hostInfoDTO.fllowernumMin != ''">
|
||||
and ns.fllowernum <=#{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.fllowernumMin != null and hostInfoDTO.fllowernumMax != null " >
|
||||
and ns.fllowernum between #{hostInfoDTO.fllowernumMin,jdbcType=INTEGER} and #{hostInfoDTO.fllowernumMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<!-- 主播在线人数筛选-->
|
||||
<if test="hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax == null ">
|
||||
<if test="hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax == null and hostInfoDTO.onlineFansMax != '' ">
|
||||
and ns.online_fans >=#{hostInfoDTO.onlineFansMin,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.onlineFansMax != null and hostInfoDTO.onlineFansMin == null ">
|
||||
and ns.online_fans <=#{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
|
||||
<if test="hostInfoDTO.onlineFansMax != null and hostInfoDTO.onlineFansMin == null and hostInfoDTO.onlineFansMin != ''">
|
||||
and ns.online_fans <= #{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="hostInfoDTO.onlineFansMin != null and hostInfoDTO.onlineFansMax != null " >
|
||||
and ns.online_fans between #{hostInfoDTO.onlineFansMin,jdbcType=INTEGER} and #{hostInfoDTO.onlineFansMax,jdbcType=INTEGER}
|
||||
@@ -343,7 +343,7 @@
|
||||
</if>
|
||||
<!-- 主播直播间在线数量排序 -->
|
||||
<if test="hostInfoDTO.sortName == 'onlineFans' and hostInfoDTO.sort != null">
|
||||
ns.online_fnas ${hostInfoDTO.sort}
|
||||
ns.online_fans ${hostInfoDTO.sort}
|
||||
</if>
|
||||
</when>
|
||||
</choose>
|
||||
|
||||
Reference in New Issue
Block a user