Przeglądaj źródła

修改快手视频消耗数据清洗任务

songyh 4 lat temu
rodzic
commit
1dd1a0bd19

+ 30 - 28
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/mapper/xml/EtlKuaishouAccountMaterialReportDailyMapper.xml

@@ -108,36 +108,38 @@
         play_3s_count)
         values
         <foreach collection="records" item="record" separator=",">
-            (#{record.companyId} ,
-            #{record.companyName} ,
-            #{record.projectId} ,
-            #{record.projectName} ,
-            #{record.accountId} ,
-            #{record.signature} ,
-            #{record.charge} ,
-            #{record.photoShow} ,
-            #{record.aclick} ,
-            #{record.bclick} ,
+            (
+            #{record.companyId},
+            #{record.companyName},
+            #{record.projectId},
+            #{record.projectName},
+            #{record.accountId},
+            #{record.signature},
+            #{record.charge},
+            #{record.photoShow},
+            #{record.aclick},
+            #{record.bclick},
             #{record.downloadStarted} ,
             #{record.downloadCompleted} ,
-            #{record.activation} ,
-            #{record.submit} ,
-            #{record.statDate} ,
-            #{record.photoClick} ,
-            #{record.eventPayFirstDay} ,
-            #{record.eventPayPurchaseAmountFirstDay} ,
-            #{record.eventPay} ,
-            #{record.eventPayPurchaseAmount} ,
-            #{record.eventRegister} ,
-            #{record.eventJinJianApp} ,
-            #{record.eventCreditGrantApp} ,
-            #{record.eventOrderPaid} ,
-            #{record.eventOrderPaidPurchaseAmount} ,
-            #{record.eventJinJianLandingPage} ,
+            #{record.activation},
+            #{record.submit},
+            #{record.statDate},
+            #{record.photoClick},
+            #{record.eventPayFirstDay},
+            #{record.eventPayPurchaseAmountFirstDay},
+            #{record.eventPay},
+            #{record.eventPayPurchaseAmount},
+            #{record.eventRegister},
+            #{record.eventJinJianApp},
+            #{record.eventCreditGrantApp},
+            #{record.eventOrderPaid},
+            #{record.eventOrderPaidPurchaseAmount},
+            #{record.eventJinJianLandingPage},
             #{record.eventCreditGrantLandingPage} ,
-            #{record.eventNextDayStay} ,
-            #{record.formCount} ,
-            #{record.play3sCount})
+            #{record.eventNextDayStay},
+            #{record.formCount},
+            #{record.play3sCount}
+            )
         </foreach>
     </insert>
     <select id="etlKuaishouAccountMaterialReportDailyList"
@@ -157,7 +159,7 @@
     sum(m.download_completed)as download_completed,
     sum(m.activation)as activation ,
     sum(m.submit)as submit,
-    stat_date,
+    date_format(m.stat_date,'%Y-%m-%d')as stat_date,
     sum(m.photo_click)as photo_click,
     sum(m.event_pay_first_day)as event_pay_first_day,
     sum(m.event_pay_purchase_amount_first_day)as event_pay_purchase_amount_first_day,