|
@@ -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 >= #{startDate}
|
|
|
</if>
|