瀏覽代碼

人群报表视图数据——商业维度数据取10条数据优化处理。

zhaoxian 4 年之前
父節點
當前提交
8b2471eceb

+ 3 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/KuaishouAudienceReportDailyAccountMapper.xml

@@ -135,7 +135,9 @@
         IFNULL(ROUND(SUM(bclick)/SUM(aclick)*100,2),0) as actionRatio
         FROM ctop_kuaishou_audience_report_daily_account
         where 1=1
-        AND business_interest_tags != '其他'
+        <if test="count > 0 ">
+            AND business_interest_tags != '其他'
+        </if>
         <if test="accountId != null">
             and account_id = #{accountId}
         </if>