|
@@ -201,4 +201,204 @@
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
+ <insert id="replaceBatchHour">
|
|
|
|
+ replace into kuaishou_live_unit_report_hourly(
|
|
|
|
+ account_id,
|
|
|
|
+ campaign_id,
|
|
|
|
+ campaign_name,
|
|
|
|
+ unit_id,
|
|
|
|
+ unit_name,
|
|
|
|
+ ocpc_action_type_str,
|
|
|
|
+ speed_type_str,
|
|
|
|
+ creative_build_type_str,
|
|
|
|
+ campaign_type_str,
|
|
|
|
+ cost_total,
|
|
|
|
+ ad_show,
|
|
|
|
+ ad_show1k_cost,
|
|
|
|
+ impression,
|
|
|
|
+ photo_click,
|
|
|
|
+ photo_click_ratio,
|
|
|
|
+ click,
|
|
|
|
+ actionbar_click,
|
|
|
|
+ actionbar_click_cost,
|
|
|
|
+ esp_click_ratio,
|
|
|
|
+ action_ratio,
|
|
|
|
+ ad_item_click_count,
|
|
|
|
+ esp_live_played_seconds,
|
|
|
|
+ played_three_seconds,
|
|
|
|
+ play3s_ratio,
|
|
|
|
+ played_five_seconds,
|
|
|
|
+ play5s_ratio,
|
|
|
|
+ played_end,
|
|
|
|
+ play_end_ratio,
|
|
|
|
+ share,
|
|
|
|
+ comment,
|
|
|
|
+ likes,
|
|
|
|
+ report,
|
|
|
|
+ block,
|
|
|
|
+ item_negative,
|
|
|
|
+ live_share,
|
|
|
|
+ live_comment,
|
|
|
|
+ live_reward,
|
|
|
|
+ effective_play_count,
|
|
|
|
+ effective_play_ratio,
|
|
|
|
+ ad_live_played1m_num,
|
|
|
|
+ conversion_num,
|
|
|
|
+ conversion_cost_esp,
|
|
|
|
+ gmv,
|
|
|
|
+ t0_gmv,
|
|
|
|
+ t1_gmv,
|
|
|
|
+ t7_gmv,
|
|
|
|
+ t15_gmv,
|
|
|
|
+ t30_gmv,
|
|
|
|
+ roi,
|
|
|
|
+ t0_roi,
|
|
|
|
+ t1_roi,
|
|
|
|
+ t7_roi,
|
|
|
|
+ t15_roi,
|
|
|
|
+ t30_roi,
|
|
|
|
+ paied_order,
|
|
|
|
+ order_ratio,
|
|
|
|
+ t0_order_cnt,
|
|
|
|
+ t0_order_cnt_cost,
|
|
|
|
+ t0_order_cnt_ratio,
|
|
|
|
+ t1_order_cnt,
|
|
|
|
+ t7_order_cnt,
|
|
|
|
+ t15_order_cnt,
|
|
|
|
+ t30_order_cnt,
|
|
|
|
+ merchant_reco_fans,
|
|
|
|
+ t1_retention,
|
|
|
|
+ t7_retention,
|
|
|
|
+ t15_retention,
|
|
|
|
+ t30_retention,
|
|
|
|
+ t1_retention_ratio,
|
|
|
|
+ t7_retention_ratio,
|
|
|
|
+ t15_retention_ratio,
|
|
|
|
+ t30_retention_ratio,
|
|
|
|
+ reservation_success,
|
|
|
|
+ reservation_cost,
|
|
|
|
+ standard_live_played_started,
|
|
|
|
+ live_audience_cost,
|
|
|
|
+ live_event_goods_view,
|
|
|
|
+ goods_click_ratio,
|
|
|
|
+ direct_attr_plat_new_buyer_cnt,
|
|
|
|
+ t30_attr_plat_total_buyer_cnt,
|
|
|
|
+ direct_attr_seller_new_buyer_cnt,
|
|
|
|
+ t30_attr_seller_total_buyer_cnt,
|
|
|
|
+ fans_t0_gmv,
|
|
|
|
+ fans_t1_gmv,
|
|
|
|
+ fans_t7_gmv,
|
|
|
|
+ fans_t15_gmv,
|
|
|
|
+ fans_t30_gmv,
|
|
|
|
+ fans_t0_roi,
|
|
|
|
+ fans_t1_roi,
|
|
|
|
+ fans_t7_roi,
|
|
|
|
+ fans_t15_roi,
|
|
|
|
+ fans_t30_roi,
|
|
|
|
+ report_date,
|
|
|
|
+ `hour`
|
|
|
|
+
|
|
|
|
+ )
|
|
|
|
+ values
|
|
|
|
+ <foreach collection="list" item="report" separator=",">
|
|
|
|
+ (
|
|
|
|
+ #{report.accountId},
|
|
|
|
+ #{report.campaignId},
|
|
|
|
+ #{report.campaignName},
|
|
|
|
+ #{report.unitId},
|
|
|
|
+ #{report.unitName},
|
|
|
|
+ #{report.ocpcActionTypeStr},
|
|
|
|
+ #{report.speedTypeStr},
|
|
|
|
+ #{report.creativeBuildTypeStr},
|
|
|
|
+ #{report.campaignTypeStr},
|
|
|
|
+ #{report.costTotal},
|
|
|
|
+ #{report.adShow},
|
|
|
|
+ #{report.adShow1kCost},
|
|
|
|
+ #{report.impression},
|
|
|
|
+ #{report.photoClick},
|
|
|
|
+ #{report.photoClickRatio},
|
|
|
|
+ #{report.click},
|
|
|
|
+ #{report.actionbarClick},
|
|
|
|
+ #{report.actionbarClickCost},
|
|
|
|
+ #{report.espClickRatio},
|
|
|
|
+ #{report.actionRatio},
|
|
|
|
+ #{report.adItemClickCount},
|
|
|
|
+ #{report.espLivePlayedSeconds},
|
|
|
|
+ #{report.playedThreeSeconds},
|
|
|
|
+ #{report.play3sRatio},
|
|
|
|
+ #{report.playedFiveSeconds},
|
|
|
|
+ #{report.play5sRatio},
|
|
|
|
+ #{report.playedEnd},
|
|
|
|
+ #{report.playEndRatio},
|
|
|
|
+ #{report.share},
|
|
|
|
+ #{report.comment},
|
|
|
|
+ #{report.likes},
|
|
|
|
+ #{report.report},
|
|
|
|
+ #{report.block},
|
|
|
|
+ #{report.itemNegative},
|
|
|
|
+ #{report.liveShare},
|
|
|
|
+ #{report.liveComment},
|
|
|
|
+ #{report.liveReward},
|
|
|
|
+ #{report.effectivePlayCount},
|
|
|
|
+ #{report.effectivePlayRatio},
|
|
|
|
+ #{report.adLivePlayed1mNum},
|
|
|
|
+ #{report.conversionNum},
|
|
|
|
+ #{report.conversionCostEsp},
|
|
|
|
+ #{report.gmv},
|
|
|
|
+ #{report.t0Gmv},
|
|
|
|
+ #{report.t1Gmv},
|
|
|
|
+ #{report.t7Gmv},
|
|
|
|
+ #{report.t15Gmv},
|
|
|
|
+ #{report.t30Gmv},
|
|
|
|
+ #{report.roi},
|
|
|
|
+ #{report.t0Roi},
|
|
|
|
+ #{report.t1Roi},
|
|
|
|
+ #{report.t7Roi},
|
|
|
|
+ #{report.t15Roi},
|
|
|
|
+ #{report.t30Roi},
|
|
|
|
+ #{report.paiedOrder},
|
|
|
|
+ #{report.orderRatio},
|
|
|
|
+ #{report.t0OrderCnt},
|
|
|
|
+ #{report.t0OrderCntCost},
|
|
|
|
+ #{report.t0OrderCntRatio},
|
|
|
|
+ #{report.t1OrderCnt},
|
|
|
|
+ #{report.t7OrderCnt},
|
|
|
|
+ #{report.t15OrderCnt},
|
|
|
|
+ #{report.t30OrderCnt},
|
|
|
|
+ #{report.merchantRecoFans},
|
|
|
|
+ #{report.t1Retention},
|
|
|
|
+ #{report.t7Retention},
|
|
|
|
+ #{report.t15Retention},
|
|
|
|
+ #{report.t30Retention},
|
|
|
|
+ #{report.t1RetentionRatio},
|
|
|
|
+ #{report.t7RetentionRatio},
|
|
|
|
+ #{report.t15RetentionRatio},
|
|
|
|
+ #{report.t30RetentionRatio},
|
|
|
|
+ #{report.reservationSuccess},
|
|
|
|
+ #{report.reservationCost},
|
|
|
|
+ #{report.standardLivePlayedStarted},
|
|
|
|
+ #{report.liveAudienceCost},
|
|
|
|
+ #{report.liveEventGoodsView},
|
|
|
|
+ #{report.goodsClickRatio},
|
|
|
|
+ #{report.directAttrPlatNewBuyerCnt},
|
|
|
|
+ #{report.t30AttrPlatTotalBuyerCnt},
|
|
|
|
+ #{report.directAttrSellerNewBuyerCnt},
|
|
|
|
+ #{report.t30AttrSellerTotalBuyerCnt},
|
|
|
|
+ #{report.fansT0Gmv},
|
|
|
|
+ #{report.fansT1Gmv},
|
|
|
|
+ #{report.fansT7Gmv},
|
|
|
|
+ #{report.fansT15Gmv},
|
|
|
|
+ #{report.fansT30Gmv},
|
|
|
|
+ #{report.fansT0Roi},
|
|
|
|
+ #{report.fansT1Roi},
|
|
|
|
+ #{report.fansT7Roi},
|
|
|
|
+ #{report.fansT15Roi},
|
|
|
|
+ #{report.fansT30Roi},
|
|
|
|
+ #{report.reportDate},
|
|
|
|
+ #{report.hour}
|
|
|
|
+ )
|
|
|
|
+ </foreach>
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|