소스 검색

头条-广告组时报

yangzian 2 년 전
부모
커밋
a516bd3efe
1개의 변경된 파일73개의 추가작업 그리고 69개의 파일을 삭제
  1. 73 69
      job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/mapper/xml/BytedanceCampaignReportHourlyMapper.xml

+ 73 - 69
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/mapper/xml/BytedanceCampaignReportHourlyMapper.xml

@@ -206,9 +206,9 @@
 
     <insert id="insert" parameterType="cn.com.ctop.job.bytedance.data.entity.BytedanceCampaignReportHourly">
     insert into bytedance_campaign_report_hourly (advertiser_id, campaign_id, stat_datetime, 
-      hour, campaign_name, cost, 
-      show, avg_show_cost, click, 
-      avg_click_cost, ctr, convert, 
+      `hour`, campaign_name, cost,
+      `show`, avg_show_cost, `click`,
+      avg_click_cost, ctr, `convert`,
       convert_cost, convert_rate, deep_convert, 
       deep_convert_cost, deep_convert_rate, attribution_convert, 
       attribution_convert_cost, attribution_deep_convert, 
@@ -229,9 +229,9 @@
       in_app_detail_uv, in_app_cart, in_app_pay, 
       in_app_order, attribution_game_pay_7d_count, attribution_game_pay_7d_cost, 
       attribution_active_pay_7d_per_count, game_pay_cost, 
-      game_pay_count, phone, form, 
-      map_search, button, view, 
-      download, qq, lottery, 
+      game_pay_count, phone, `form`,
+      map_search, button, `view`,
+      download, `qq`, lottery,
       vote, message, redirect, 
       shopping, consult, wechat, 
       phone_confirm, phone_connect, consult_effective, 
@@ -258,75 +258,79 @@
       wifi_play, play_duration_sum, advanced_creative_phone_click, 
       advanced_creative_counsel_click, advanced_creative_form_click, 
       advanced_creative_coupon_addition, advanced_creative_form_submit, 
-      card_show, share, comment, 
-      like, follow, home_visited, 
+      card_show, `share`, `comment`,
+      `like`, `follow`, home_visited,
       ies_challenge_click, ies_music_click, location_click, 
       message_action, click_landing_page, click_shopwindow, 
       click_website, click_download, click_call_dy, 
       submit_certification_count, approval_count, 
       first_rental_order_count, first_order_count, commute_first_pay_count
       )
-    values (#{advertiserId,jdbcType=BIGINT}, #{campaignId,jdbcType=BIGINT}, #{statDatetime,jdbcType=INTEGER}, 
-      #{hour,jdbcType=INTEGER}, #{campaignName,jdbcType=VARCHAR}, #{cost,jdbcType=DECIMAL}, 
-      #{show,jdbcType=BIGINT}, #{avgShowCost,jdbcType=DECIMAL}, #{click,jdbcType=BIGINT}, 
-      #{avgClickCost,jdbcType=DECIMAL}, #{ctr,jdbcType=DECIMAL}, #{convert,jdbcType=BIGINT}, 
-      #{convertCost,jdbcType=DECIMAL}, #{convertRate,jdbcType=DECIMAL}, #{deepConvert,jdbcType=BIGINT}, 
-      #{deepConvertCost,jdbcType=DECIMAL}, #{deepConvertRate,jdbcType=DECIMAL}, #{attributionConvert,jdbcType=BIGINT}, 
-      #{attributionConvertCost,jdbcType=DECIMAL}, #{attributionDeepConvert,jdbcType=BIGINT}, 
-      #{attributionDeepConvertCost,jdbcType=DECIMAL}, #{downloadStart,jdbcType=BIGINT}, 
-      #{downloadStartCost,jdbcType=DECIMAL}, #{downloadStartRate,jdbcType=DECIMAL}, #{downloadFinish,jdbcType=BIGINT}, 
-      #{downloadFinishCost,jdbcType=DECIMAL}, #{downloadFinishRate,jdbcType=DECIMAL}, 
-      #{clickInstall,jdbcType=BIGINT}, #{installFinish,jdbcType=BIGINT}, #{installFinishCost,jdbcType=DECIMAL}, 
-      #{installFinishRate,jdbcType=DECIMAL}, #{active,jdbcType=BIGINT}, #{activeCost,jdbcType=DECIMAL}, 
-      #{activeRate,jdbcType=DECIMAL}, #{register,jdbcType=DECIMAL}, #{activeRegisterCost,jdbcType=DECIMAL}, 
-      #{activeRegisterRate,jdbcType=REAL}, #{nextDayOpen,jdbcType=BIGINT}, #{nextDayOpenCost,jdbcType=DECIMAL}, 
-      #{nextDayOpenRate,jdbcType=DECIMAL}, #{attributionNextDayOpenCnt,jdbcType=BIGINT}, 
-      #{attributionNextDayOpenCost,jdbcType=DECIMAL}, #{attributionNextDayOpenRate,jdbcType=DECIMAL}, 
-      #{gameAddiction,jdbcType=BIGINT}, #{gameAddictionCost,jdbcType=DECIMAL}, #{gameAddictionRate,jdbcType=DECIMAL}, 
-      #{payCount,jdbcType=BIGINT}, #{activePayCost,jdbcType=DECIMAL}, #{activePayRate,jdbcType=DECIMAL}, 
-      #{loanCompletion,jdbcType=BIGINT}, #{loanCompletionCost,jdbcType=DECIMAL}, #{loanCompletionRate,jdbcType=DECIMAL}, 
-      #{preLoanCredit,jdbcType=BIGINT}, #{preLoanCreditCost,jdbcType=DECIMAL}, #{loanCredit,jdbcType=BIGINT}, 
-      #{loanCreditCost,jdbcType=DECIMAL}, #{loanCreditRate,jdbcType=DECIMAL}, #{inAppUv,jdbcType=BIGINT}, 
-      #{inAppDetailUv,jdbcType=BIGINT}, #{inAppCart,jdbcType=BIGINT}, #{inAppPay,jdbcType=BIGINT}, 
-      #{inAppOrder,jdbcType=BIGINT}, #{attributionGamePay7dCount,jdbcType=BIGINT}, #{attributionGamePay7dCost,jdbcType=DECIMAL}, 
-      #{attributionActivePay7dPerCount,jdbcType=BIGINT}, #{gamePayCost,jdbcType=DECIMAL}, 
-      #{gamePayCount,jdbcType=BIGINT}, #{phone,jdbcType=BIGINT}, #{form,jdbcType=BIGINT}, 
-      #{mapSearch,jdbcType=BIGINT}, #{button,jdbcType=BIGINT}, #{view,jdbcType=BIGINT}, 
-      #{download,jdbcType=BIGINT}, #{qq,jdbcType=BIGINT}, #{lottery,jdbcType=BIGINT}, 
-      #{vote,jdbcType=BIGINT}, #{message,jdbcType=BIGINT}, #{redirect,jdbcType=BIGINT}, 
-      #{shopping,jdbcType=BIGINT}, #{consult,jdbcType=BIGINT}, #{wechat,jdbcType=BIGINT}, 
-      #{phoneConfirm,jdbcType=BIGINT}, #{phoneConnect,jdbcType=BIGINT}, #{consultEffective,jdbcType=BIGINT}, 
-      #{coupon,jdbcType=BIGINT}, #{couponSinglePage,jdbcType=BIGINT}, #{redirectToShop,jdbcType=BIGINT}, 
-      #{poiCollect,jdbcType=BIGINT}, #{poiAddressClick,jdbcType=BIGINT}, #{lubanOrderCnt,jdbcType=BIGINT}, 
-      #{lubanOrderStatAmount,jdbcType=DECIMAL}, #{lubanOrderRoi,jdbcType=DECIMAL}, #{lubanLiveEnterCnt,jdbcType=BIGINT}, 
-      #{liveWatchOneMinuteCount,jdbcType=BIGINT}, #{lubanLiveFollowCnt,jdbcType=BIGINT}, 
-      #{liveFansClubJoinCnt,jdbcType=BIGINT}, #{lubanLiveCommentCnt,jdbcType=BIGINT}, 
-      #{lubanLiveShareCnt,jdbcType=BIGINT}, #{lubanLiveGiftCnt,jdbcType=BIGINT}, #{lubanLiveGiftAmount,jdbcType=DECIMAL}, 
-      #{lubanLiveSlidecartClickCnt,jdbcType=BIGINT}, #{lubanLiveClickProductCnt,jdbcType=BIGINT}, 
-      #{lubanLivePayOrderCount,jdbcType=BIGINT}, #{lubanLivePayOrderStatCost,jdbcType=DECIMAL}, 
-      #{liveComponentClickCount,jdbcType=BIGINT}, #{liveComponentClickCost,jdbcType=DECIMAL}, 
-      #{liveComponentClickRate,jdbcType=DECIMAL}, #{wechatLoginCount,jdbcType=BIGINT}, 
-      #{attributionWechatLogin30dCount,jdbcType=BIGINT}, #{wechatLoginCost,jdbcType=DECIMAL}, 
-      #{attributionWechatLogin30dCost,jdbcType=DECIMAL}, #{wechatFirstPayCount,jdbcType=BIGINT}, 
-      #{attributionWechatFirstPay30dCount,jdbcType=BIGINT}, #{wechatFirstPayCost,jdbcType=DECIMAL}, 
-      #{attributionWechatFirstPay30dCost,jdbcType=DECIMAL}, #{wechatFirstPayRate,jdbcType=DECIMAL}, 
-      #{attributionWechatFirstPay30dRate,jdbcType=DECIMAL}, #{wechatPayAmount,jdbcType=DECIMAL}, 
-      #{attributionWechatPay30dAmount,jdbcType=DECIMAL}, #{attributionWechatPay30dRoi,jdbcType=DECIMAL}, 
-      #{phoneEffective,jdbcType=BIGINT}, #{totalPlay,jdbcType=BIGINT}, #{validPlay,jdbcType=BIGINT}, 
-      #{validPlayCost,jdbcType=DECIMAL}, #{validPlayRate,jdbcType=DECIMAL}, #{play25FeedBreak,jdbcType=BIGINT}, 
-      #{play50FeedBreak,jdbcType=BIGINT}, #{play75FeedBreak,jdbcType=BIGINT}, #{play100FeedBreak,jdbcType=BIGINT}, 
-      #{averagePlayTimePerPlay,jdbcType=DECIMAL}, #{playOverRate,jdbcType=DECIMAL}, #{wifiPlayRate,jdbcType=DECIMAL}, 
-      #{wifiPlay,jdbcType=BIGINT}, #{playDurationSum,jdbcType=BIGINT}, #{advancedCreativePhoneClick,jdbcType=BIGINT}, 
-      #{advancedCreativeCounselClick,jdbcType=BIGINT}, #{advancedCreativeFormClick,jdbcType=BIGINT}, 
-      #{advancedCreativeCouponAddition,jdbcType=BIGINT}, #{advancedCreativeFormSubmit,jdbcType=BIGINT}, 
-      #{cardShow,jdbcType=BIGINT}, #{share,jdbcType=BIGINT}, #{comment,jdbcType=BIGINT}, 
-      #{like,jdbcType=BIGINT}, #{follow,jdbcType=BIGINT}, #{homeVisited,jdbcType=BIGINT}, 
-      #{iesChallengeClick,jdbcType=BIGINT}, #{iesMusicClick,jdbcType=BIGINT}, #{locationClick,jdbcType=BIGINT}, 
-      #{messageAction,jdbcType=BIGINT}, #{clickLandingPage,jdbcType=BIGINT}, #{clickShopwindow,jdbcType=BIGINT}, 
-      #{clickWebsite,jdbcType=BIGINT}, #{clickDownload,jdbcType=BIGINT}, #{clickCallDy,jdbcType=BIGINT}, 
-      #{submitCertificationCount,jdbcType=BIGINT}, #{approvalCount,jdbcType=BIGINT}, 
-      #{firstRentalOrderCount,jdbcType=BIGINT}, #{firstOrderCount,jdbcType=BIGINT}, #{commuteFirstPayCount,jdbcType=BIGINT}
-      )
+    values
+        <foreach collection="list" item="item" separator=",">
+            (
+            #{item.advertiserId,jdbcType=BIGINT}, #{item.campaignId,jdbcType=BIGINT}, #{item.statDatetime,jdbcType=INTEGER},
+            #{item.hour,jdbcType=INTEGER}, #{item.campaignName,jdbcType=VARCHAR}, #{item.cost,jdbcType=DECIMAL},
+            #{item.show,jdbcType=BIGINT}, #{item.avgShowCost,jdbcType=DECIMAL}, #{item.click,jdbcType=BIGINT},
+            #{item.avgClickCost,jdbcType=DECIMAL}, #{item.ctr,jdbcType=DECIMAL}, #{item.convert,jdbcType=BIGINT},
+            #{item.convertCost,jdbcType=DECIMAL}, #{item.convertRate,jdbcType=DECIMAL}, #{item.deepConvert,jdbcType=BIGINT},
+            #{item.deepConvertCost,jdbcType=DECIMAL}, #{item.deepConvertRate,jdbcType=DECIMAL}, #{item.attributionConvert,jdbcType=BIGINT},
+            #{item.attributionConvertCost,jdbcType=DECIMAL}, #{item.attributionDeepConvert,jdbcType=BIGINT},
+            #{item.attributionDeepConvertCost,jdbcType=DECIMAL}, #{item.downloadStart,jdbcType=BIGINT},
+            #{item.downloadStartCost,jdbcType=DECIMAL}, #{item.downloadStartRate,jdbcType=DECIMAL}, #{item.downloadFinish,jdbcType=BIGINT},
+            #{item.downloadFinishCost,jdbcType=DECIMAL}, #{item.downloadFinishRate,jdbcType=DECIMAL},
+            #{item.clickInstall,jdbcType=BIGINT}, #{item.installFinish,jdbcType=BIGINT}, #{item.installFinishCost,jdbcType=DECIMAL},
+            #{item.installFinishRate,jdbcType=DECIMAL}, #{item.active,jdbcType=BIGINT}, #{item.activeCost,jdbcType=DECIMAL},
+            #{item.activeRate,jdbcType=DECIMAL}, #{item.register,jdbcType=DECIMAL}, #{item.activeRegisterCost,jdbcType=DECIMAL},
+            #{item.activeRegisterRate,jdbcType=REAL}, #{item.nextDayOpen,jdbcType=BIGINT}, #{item.nextDayOpenCost,jdbcType=DECIMAL},
+            #{item.nextDayOpenRate,jdbcType=DECIMAL}, #{item.attributionNextDayOpenCnt,jdbcType=BIGINT},
+            #{item.attributionNextDayOpenCost,jdbcType=DECIMAL}, #{item.attributionNextDayOpenRate,jdbcType=DECIMAL},
+            #{item.gameAddiction,jdbcType=BIGINT}, #{item.gameAddictionCost,jdbcType=DECIMAL}, #{item.gameAddictionRate,jdbcType=DECIMAL},
+            #{item.payCount,jdbcType=BIGINT}, #{item.activePayCost,jdbcType=DECIMAL}, #{item.activePayRate,jdbcType=DECIMAL},
+            #{item.loanCompletion,jdbcType=BIGINT}, #{item.loanCompletionCost,jdbcType=DECIMAL}, #{item.loanCompletionRate,jdbcType=DECIMAL},
+            #{item.preLoanCredit,jdbcType=BIGINT}, #{item.preLoanCreditCost,jdbcType=DECIMAL}, #{item.loanCredit,jdbcType=BIGINT},
+            #{item.loanCreditCost,jdbcType=DECIMAL}, #{item.loanCreditRate,jdbcType=DECIMAL}, #{item.inAppUv,jdbcType=BIGINT},
+            #{item.inAppDetailUv,jdbcType=BIGINT}, #{item.inAppCart,jdbcType=BIGINT}, #{item.inAppPay,jdbcType=BIGINT},
+            #{item.inAppOrder,jdbcType=BIGINT}, #{item.attributionGamePay7dCount,jdbcType=BIGINT}, #{item.attributionGamePay7dCost,jdbcType=DECIMAL},
+            #{item.attributionActivePay7dPerCount,jdbcType=BIGINT}, #{item.gamePayCost,jdbcType=DECIMAL},
+            #{item.gamePayCount,jdbcType=BIGINT}, #{item.phone,jdbcType=BIGINT}, #{item.form,jdbcType=BIGINT},
+            #{item.mapSearch,jdbcType=BIGINT}, #{item.button,jdbcType=BIGINT}, #{item.view,jdbcType=BIGINT},
+            #{item.download,jdbcType=BIGINT}, #{item.qq,jdbcType=BIGINT}, #{item.lottery,jdbcType=BIGINT},
+            #{item.vote,jdbcType=BIGINT}, #{item.message,jdbcType=BIGINT}, #{item.redirect,jdbcType=BIGINT},
+            #{item.shopping,jdbcType=BIGINT}, #{item.consult,jdbcType=BIGINT}, #{item.wechat,jdbcType=BIGINT},
+            #{item.phoneConfirm,jdbcType=BIGINT}, #{item.phoneConnect,jdbcType=BIGINT}, #{item.consultEffective,jdbcType=BIGINT},
+            #{item.coupon,jdbcType=BIGINT}, #{item.couponSinglePage,jdbcType=BIGINT}, #{item.redirectToShop,jdbcType=BIGINT},
+            #{item.poiCollect,jdbcType=BIGINT}, #{item.poiAddressClick,jdbcType=BIGINT}, #{item.lubanOrderCnt,jdbcType=BIGINT},
+            #{item.lubanOrderStatAmount,jdbcType=DECIMAL}, #{item.lubanOrderRoi,jdbcType=DECIMAL}, #{item.lubanLiveEnterCnt,jdbcType=BIGINT},
+            #{item.liveWatchOneMinuteCount,jdbcType=BIGINT}, #{item.lubanLiveFollowCnt,jdbcType=BIGINT},
+            #{item.liveFansClubJoinCnt,jdbcType=BIGINT}, #{item.lubanLiveCommentCnt,jdbcType=BIGINT},
+            #{item.lubanLiveShareCnt,jdbcType=BIGINT}, #{item.lubanLiveGiftCnt,jdbcType=BIGINT}, #{item.lubanLiveGiftAmount,jdbcType=DECIMAL},
+            #{item.lubanLiveSlidecartClickCnt,jdbcType=BIGINT}, #{item.lubanLiveClickProductCnt,jdbcType=BIGINT},
+            #{item.lubanLivePayOrderCount,jdbcType=BIGINT}, #{item.lubanLivePayOrderStatCost,jdbcType=DECIMAL},
+            #{item.liveComponentClickCount,jdbcType=BIGINT}, #{item.liveComponentClickCost,jdbcType=DECIMAL},
+            #{item.liveComponentClickRate,jdbcType=DECIMAL}, #{item.wechatLoginCount,jdbcType=BIGINT},
+            #{item.attributionWechatLogin30dCount,jdbcType=BIGINT}, #{item.wechatLoginCost,jdbcType=DECIMAL},
+            #{item.attributionWechatLogin30dCost,jdbcType=DECIMAL}, #{item.wechatFirstPayCount,jdbcType=BIGINT},
+            #{item.attributionWechatFirstPay30dCount,jdbcType=BIGINT}, #{item.wechatFirstPayCost,jdbcType=DECIMAL},
+            #{item.attributionWechatFirstPay30dCost,jdbcType=DECIMAL}, #{item.wechatFirstPayRate,jdbcType=DECIMAL},
+            #{item.attributionWechatFirstPay30dRate,jdbcType=DECIMAL}, #{item.wechatPayAmount,jdbcType=DECIMAL},
+            #{item.attributionWechatPay30dAmount,jdbcType=DECIMAL}, #{item.attributionWechatPay30dRoi,jdbcType=DECIMAL},
+            #{item.phoneEffective,jdbcType=BIGINT}, #{item.totalPlay,jdbcType=BIGINT}, #{item.validPlay,jdbcType=BIGINT},
+            #{item.validPlayCost,jdbcType=DECIMAL}, #{item.validPlayRate,jdbcType=DECIMAL}, #{item.play25FeedBreak,jdbcType=BIGINT},
+            #{item.play50FeedBreak,jdbcType=BIGINT}, #{item.play75FeedBreak,jdbcType=BIGINT}, #{item.play100FeedBreak,jdbcType=BIGINT},
+            #{item.averagePlayTimePerPlay,jdbcType=DECIMAL}, #{item.playOverRate,jdbcType=DECIMAL}, #{item.wifiPlayRate,jdbcType=DECIMAL},
+            #{item.wifiPlay,jdbcType=BIGINT}, #{item.playDurationSum,jdbcType=BIGINT}, #{item.advancedCreativePhoneClick,jdbcType=BIGINT},
+            #{item.advancedCreativeCounselClick,jdbcType=BIGINT}, #{item.advancedCreativeFormClick,jdbcType=BIGINT},
+            #{item.advancedCreativeCouponAddition,jdbcType=BIGINT}, #{item.advancedCreativeFormSubmit,jdbcType=BIGINT},
+            #{item.cardShow,jdbcType=BIGINT}, #{item.share,jdbcType=BIGINT}, #{item.comment,jdbcType=BIGINT},
+            #{item.like,jdbcType=BIGINT}, #{item.follow,jdbcType=BIGINT}, #{item.homeVisited,jdbcType=BIGINT},
+            #{item.iesChallengeClick,jdbcType=BIGINT}, #{item.iesMusicClick,jdbcType=BIGINT}, #{item.locationClick,jdbcType=BIGINT},
+            #{item.messageAction,jdbcType=BIGINT}, #{item.clickLandingPage,jdbcType=BIGINT}, #{item.clickShopwindow,jdbcType=BIGINT},
+            #{item.clickWebsite,jdbcType=BIGINT}, #{item.clickDownload,jdbcType=BIGINT}, #{item.clickCallDy,jdbcType=BIGINT},
+            #{item.submitCertificationCount,jdbcType=BIGINT}, #{item.approvalCount,jdbcType=BIGINT},
+            #{item.firstRentalOrderCount,jdbcType=BIGINT}, #{item.firstOrderCount,jdbcType=BIGINT}, #{item.commuteFirstPayCount,jdbcType=BIGINT}
+            )
+      </foreach>
   </insert>
 
 </mapper>