1.添加查询条件delete = 0

This commit is contained in:
2025-07-02 14:45:02 +08:00
parent c8fcdc83b1
commit cddc06d466
2 changed files with 2 additions and 0 deletions

View File

@@ -182,6 +182,7 @@
select ns.id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum, select ns.id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum,
yesterday_coins,ns.create_time, country, online_fans,hosts_kind,remake ,operation_status,user_id,uid from server_employee_hosts ns left join server_country_info ci ON ns.country = ci.country_name yesterday_coins,ns.create_time, country, online_fans,hosts_kind,remake ,operation_status,user_id,uid from server_employee_hosts ns left join server_country_info ci ON ns.country = ci.country_name
WHERE tenant_id = #{req.tenantId,jdbcType=BIGINT} WHERE tenant_id = #{req.tenantId,jdbcType=BIGINT}
and deleted = 0
<!-- 筛选员工名下主播 --> <!-- 筛选员工名下主播 -->
<if test="req.userId != null "> <if test="req.userId != null ">
and user_id = #{req.userId,jdbcType=BIGINT} and user_id = #{req.userId,jdbcType=BIGINT}

View File

@@ -14,6 +14,7 @@
select ns.id,hosts_id, hosts_level, hosts_coins, Invitation_type, fans, fllowernum, 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 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 from server_new_hosts ns left join server_country_info ci ON ns.country = ci.country_name
WHERE tenant_id =#{req.tenantId,jdbcType=BIGINT} WHERE tenant_id =#{req.tenantId,jdbcType=BIGINT}
and deleted = 0
<!-- 主播国家筛选 --> <!-- 主播国家筛选 -->
<if test="req.country!= '' and req.country != null"> <if test="req.country!= '' and req.country != null">
and ci.country_group_name =#{req.country,jdbcType=VARCHAR} and ci.country_group_name =#{req.country,jdbcType=VARCHAR}