浏览代码

运营数据详情-新上组数修改

yangzian 2 年之前
父节点
当前提交
871e0bbc03

+ 3 - 5
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -290,14 +290,12 @@
         SELECT abi.account_id ,
         IFNULL(SUM(abi.new_effect_num),0) as newEffectNum,
         IFNULL(SUM(abi.new_campaign_num),0) as newCampaignNum,
-        IFNULL((SUM(abi.new_unit_num) - SUM(abi.trust_unit_num)),0) as newUnitNum,
+        IFNULL(SUM(abi.new_unit_num),0) as newUnitNum,
         IFNULL(SUM( abi.new_video_num ),0) AS newVideoNum,
         IFNULL(SUM( abi.new_hot_num ),0) AS newHotNum,
         IFNULL(SUM( abi.trust_unit_num ),0) AS trustUnitNum
-        from application.app_kuaishou_account_base_info_d abi,
-        `jeecg-boot`.ctop_user_allocation u
-        WHERE abi.account_id = u.account_id
-        and u.account_status = 0
+        from application.app_kuaishou_account_base_info_d abi
+        WHERE 1 =1
         <if test="startDate != null and startDate != '' ">
             and abi.stat_date &gt;= #{startDate}
         </if>