Explorar el Código

盯盘运营经理-项目数据基建(基建-托管)

yangzian hace 3 años
padre
commit
cb300a3553

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

@@ -148,7 +148,7 @@
         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),0) as newUnitNum,
+        IFNULL((SUM(abi.new_unit_num) - SUM(abi.trust_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
@@ -183,7 +183,7 @@
  <!-- 查看 快手 当天 有效 计划 组-->
     <select id="getKuaiShouAccountNowBaseByUserId" resultType="com.alibaba.fastjson.JSONObject">
         SELECT abi.account_id ,
-        IFNULL(SUM(abi.new_all_unit_num),0) as newUnitNum,
+        IFNULL((SUM(abi.new_all_unit_num) - SUM(abi.new_trush_unit_num)),0) as newUnitNum,
         IFNULL(SUM(abi.new_trush_unit_num),0) as trustUnitNum
         from application.app_kuaishou_account_today_base_info_d abi,
         `jeecg-boot`.ctop_user_allocation u