Pārlūkot izejas kodu

易车 数据源 sql更改

zhaoxian 2 gadi atpakaļ
vecāks
revīzija
af3e972ae2

+ 6 - 6
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/KuaiShouYiCheReportMapper.xml

@@ -7,7 +7,7 @@
 	max(t2.stat_hour)
     FROM
 	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
 	t1.project_id = #{projectId}
     AND t2.stat_date = #{statDate}
@@ -47,7 +47,7 @@
 
         FROM
         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
         <if test="projectId != null">
             and t1.project_id = #{projectId}
@@ -101,7 +101,7 @@
         ) estimatedCost
         FROM
         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
         <if test="projectId != null">
             and t1.project_id = #{projectId}
@@ -270,7 +270,7 @@
         ) activationRatio
         FROM
         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
         <if test="projectId != null">
             and t1.project_id = #{projectId}
@@ -464,7 +464,7 @@
         FROM
         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
         1 = 1
         <if test="projectId != null">
@@ -651,7 +651,7 @@
         ) campaignName
         FROM
         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
         1 = 1
         <if test="projectId != null">