1.区分国家地区筛选
2.添加获取地区内国家接口
This commit is contained in:
@@ -12,12 +12,17 @@
|
||||
|
||||
<select id="selectPageWithXML" resultType="cn.iocoder.yudao.module.tkdata.dal.dataobject.newhosts.NewHostsDO">
|
||||
select ns.id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum,
|
||||
yesterday_coins,ns.create_time, country, online_fans,hosts_kind ,is_assigned,uid ,ns.update_time,ns.operation_status,ns.ai_operation from server_new_hosts ns left join server_country_info ci ON ns.country = ci.country_name
|
||||
yesterday_coins,ns.create_time, country, online_fans,hosts_kind ,is_assigned,uid ,ns.update_time,ns.operation_status,ns.ai_operation
|
||||
from server_new_hosts ns left join
|
||||
server_country_info ci ON ns.country = ci.country_name
|
||||
WHERE tenant_id =#{req.tenantId,jdbcType=BIGINT}
|
||||
and deleted = 0
|
||||
<!-- 主播国家筛选 -->
|
||||
<if test="req.country!= '' and req.country != null">
|
||||
and ci.country_group_name =#{req.country,jdbcType=VARCHAR}
|
||||
<if test="req.region!= '' and req.country != null">
|
||||
and ci.country_group_name =#{req.region,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="req.country != '' and req.country !=null ">
|
||||
and ns.country = #{req.country}
|
||||
</if>
|
||||
<if test="req.userId != null " >
|
||||
and ns.user_id =#{req.userId,jdbcType=BIGINT}
|
||||
|
||||
Reference in New Issue
Block a user