|
@@ -7,7 +7,7 @@
|
|
max(t2.stat_hour)
|
|
max(t2.stat_hour)
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
- LEFT JOIN ctop_kuaishou_report_hourly_account t2 ON t1.account_id = t2.account_id
|
|
|
|
|
|
+ LEFT JOIN application.kuaishou_account_report_hourly_dw t2 ON t1.account_id = t2.account_id
|
|
WHERE
|
|
WHERE
|
|
t1.project_id = #{projectId}
|
|
t1.project_id = #{projectId}
|
|
AND t2.stat_date = #{statDate}
|
|
AND t2.stat_date = #{statDate}
|
|
@@ -47,7 +47,7 @@
|
|
|
|
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
- LEFT JOIN ctop_kuaishou_report_hourly_account t2 ON t1.account_id = t2.account_id
|
|
|
|
|
|
+ LEFT JOIN application.kuaishou_account_report_hourly_dw t2 ON t1.account_id = t2.account_id
|
|
where 1 = 1
|
|
where 1 = 1
|
|
<if test="projectId != null">
|
|
<if test="projectId != null">
|
|
and t1.project_id = #{projectId}
|
|
and t1.project_id = #{projectId}
|
|
@@ -101,7 +101,7 @@
|
|
) estimatedCost
|
|
) estimatedCost
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
- LEFT JOIN ctop_kuaishou_report_hourly_account t2 ON t1.account_id = t2.account_id
|
|
|
|
|
|
+ LEFT JOIN application.kuaishou_account_report_hourly_dw t2 ON t1.account_id = t2.account_id
|
|
where 1 = 1
|
|
where 1 = 1
|
|
<if test="projectId != null">
|
|
<if test="projectId != null">
|
|
and t1.project_id = #{projectId}
|
|
and t1.project_id = #{projectId}
|
|
@@ -270,7 +270,7 @@
|
|
) activationRatio
|
|
) activationRatio
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t1
|
|
ctop_user_allocation t1
|
|
- LEFT JOIN ctop_kuaishou_report_daily_account t2 ON t1.account_id = t2.account_id
|
|
|
|
|
|
+ LEFT JOIN application.kuaishou_account_report_daily_dw t2 ON t1.account_id = t2.account_id
|
|
where 1 = 1
|
|
where 1 = 1
|
|
<if test="projectId != null">
|
|
<if test="projectId != null">
|
|
and t1.project_id = #{projectId}
|
|
and t1.project_id = #{projectId}
|
|
@@ -464,7 +464,7 @@
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t
|
|
ctop_user_allocation t
|
|
|
|
|
|
- LEFT JOIN ctop_kuaishou_report_daily_campaign t1 ON t.account_id = t1.account_id
|
|
|
|
|
|
+ LEFT JOIN application.kuaishou_campaign_report_daily_dw t1 ON t.account_id = t1.account_id
|
|
WHERE
|
|
WHERE
|
|
1 = 1
|
|
1 = 1
|
|
<if test="projectId != null">
|
|
<if test="projectId != null">
|
|
@@ -651,7 +651,7 @@
|
|
) campaignName
|
|
) campaignName
|
|
FROM
|
|
FROM
|
|
ctop_user_allocation t
|
|
ctop_user_allocation t
|
|
- LEFT JOIN ctop_kuaishou_report_daily_campaign t1 ON t.account_id = t1.account_id
|
|
|
|
|
|
+ LEFT JOIN application.kuaishou_campaign_report_daily_dw t1 ON t.account_id = t1.account_id
|
|
WHERE
|
|
WHERE
|
|
1 = 1
|
|
1 = 1
|
|
<if test="projectId != null">
|
|
<if test="projectId != null">
|