修改主播 Id 筛选为前缀匹配模糊搜索

This commit is contained in:
2025-06-13 13:29:06 +08:00
parent 56dff5357c
commit 0732262133

View File

@@ -247,14 +247,17 @@
yesterday_coins,create_time, country, online_fans,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">
and new_hosts.country =#{hostInfoDTO.country,jdbcType=VARCHAR} and new_hosts.country =#{hostInfoDTO.country,jdbcType=VARCHAR}
</if> </if>
<!-- 按照入库时间筛选主播 -->
<if test="hostInfoDTO.createTime != null"> <if test="hostInfoDTO.createTime != null">
and DATE(new_hosts.create_time) =#{hostInfoDTO.createTime} and DATE(new_hosts.create_time) =#{hostInfoDTO.createTime}
</if> </if>
<!-- 主播 Id 模糊搜索 -->
<if test="hostInfoDTO.hostsId != '' and hostInfoDTO.hostsId != null "> <if test="hostInfoDTO.hostsId != '' and hostInfoDTO.hostsId != null ">
and new_hosts.hosts_id =#{hostInfoDTO.hostsId,jdbcType=VARCHAR} and new_hosts.hosts_id like concat(#{hostInfoDTO.hostsId,jdbcType=VARCHAR},'%')
</if> </if>
<!-- 今日主播金币筛选 --> <!-- 今日主播金币筛选 -->
<if test="hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax == null "> <if test="hostInfoDTO.hostsCoinsMin != null and hostInfoDTO.hostsCoinsMax == null ">