|
|
@@ -446,7 +446,9 @@
|
|
|
<select id="projectData" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select project_id as target_id, bid_type as bytedance_project_bid_type,
|
|
|
roi_goal as bytedance_project_roi_goal,
|
|
|
- cpa_bid as bytedance_project_cpa_bid
|
|
|
+ cpa_bid as bytedance_project_cpa_bid,
|
|
|
+ external_action as bytedance_project_external_action,
|
|
|
+ deep_external_action as bytedance_project_deep_external_action
|
|
|
from media_api.bytedance_cdp_project_list
|
|
|
where project_id in
|
|
|
<foreach collection="idList" item="item" open="(" close=")" separator=",">
|
|
|
@@ -454,7 +456,7 @@
|
|
|
</foreach>
|
|
|
</select>
|
|
|
<select id="balanceData" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- select advertiser_id as target_id, (wallet_total_balance_valid+balance) as bytedance_advertiser_balance
|
|
|
+ select advertiser_id as target_id, (wallet_total_balance_valid + balance) as bytedance_advertiser_balance
|
|
|
from media_api.bytedance_advertiser_fund
|
|
|
where advertiser_id in
|
|
|
<foreach collection="idList" item="item" open="(" close=")" separator=",">
|
|
|
@@ -503,7 +505,7 @@
|
|
|
<select id="promotionTargetNameInfo" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select tb1.advertiser_id as advertiserId, tb2.advertiser_name as advertiserName,
|
|
|
ad_id as targetId, ad_name as targetName
|
|
|
- from application.media_ad_report_daily
|
|
|
+ from application.media_ad_report_daily tb1
|
|
|
left join tidb.deepthink.advertiser_bind_info tb2 on tb1.advertiser_id = tb2.advertiser_id
|
|
|
where stat_date >= DATE_SUB(CURRENT_DATE(), INTERVAL 9 DAY)
|
|
|
and ad_id in
|