|
@@ -105,5 +105,127 @@
|
|
|
)
|
|
|
set account_id = #{accountId}
|
|
|
</insert>
|
|
|
+ <insert id="replaceBatch">
|
|
|
+ replace into ctop_kuaishou_report_daily_campaign
|
|
|
+ (
|
|
|
+ account_id,
|
|
|
+ campaign_id,
|
|
|
+ status,
|
|
|
+ campaign_name,
|
|
|
+ charge,
|
|
|
+ photo_show,
|
|
|
+ aclick,
|
|
|
+ bclick ,
|
|
|
+ photo_share ,
|
|
|
+ photo_comment ,
|
|
|
+ photo_like,
|
|
|
+ follow ,
|
|
|
+ cancel_follow ,
|
|
|
+ report ,
|
|
|
+ block,
|
|
|
+ negative,
|
|
|
+ download_started ,
|
|
|
+ download_completed ,
|
|
|
+ activation ,
|
|
|
+ submit ,
|
|
|
+ stat_date ,
|
|
|
+ photo_click ,
|
|
|
+ photo_click_ratio ,
|
|
|
+ action_ratio ,
|
|
|
+ impression_1k_cost ,
|
|
|
+ photo_click_cost,
|
|
|
+ action_cost,
|
|
|
+ event_pay_first_day ,
|
|
|
+ event_pay_purchase_amount_first_day ,
|
|
|
+ event_pay_first_day_roi,
|
|
|
+ event_pay ,
|
|
|
+ event_pay_purchase_amount ,
|
|
|
+ event_pay_roi ,
|
|
|
+ event_register ,
|
|
|
+ event_register_cost ,
|
|
|
+ event_register_ratio,
|
|
|
+ event_jin_jian_app ,
|
|
|
+ event_jin_jian_app_cost,
|
|
|
+ event_credit_grant_app ,
|
|
|
+ event_credit_grant_app_cost,
|
|
|
+ event_credit_grant_app_ratio,
|
|
|
+ event_order_paid,
|
|
|
+ event_order_paid_purchase_amount,
|
|
|
+ event_jin_jian_landing_page ,
|
|
|
+ event_jin_jian_landing_page_cost,
|
|
|
+ event_credit_grant_landing_page,
|
|
|
+ event_credit_grant_landing_page_cost,
|
|
|
+ event_credit_grant_landing_ratio,
|
|
|
+ event_next_day_stay_cost,
|
|
|
+ event_next_day_stay_ratio,
|
|
|
+ form_action_ratio,
|
|
|
+ event_order_paid_cost,
|
|
|
+ event_next_day_stay ,
|
|
|
+ form_cost ,
|
|
|
+ form_count ,
|
|
|
+ play_3s_ratio
|
|
|
+ )
|
|
|
+ values
|
|
|
+ <foreach collection="records" item="record" separator=",">
|
|
|
+ (
|
|
|
+ #{record.accountId}},
|
|
|
+ #{record.campaignId},
|
|
|
+ #{record.status},
|
|
|
+ #{record.campaignName},
|
|
|
+ #{record.charge},
|
|
|
+ #{record.photoShow},
|
|
|
+ #{record.aclick},
|
|
|
+ #{record.bclick},
|
|
|
+ #{record.photoShare },
|
|
|
+ #{record.photoComment },
|
|
|
+ #{record.photoLike},
|
|
|
+ #{record.follow},
|
|
|
+ #{record.cancelFollow },
|
|
|
+ #{record.report},
|
|
|
+ #{record.block},
|
|
|
+ #{record.negative},
|
|
|
+ #{record.downloadStarted},
|
|
|
+ #{record.downloadCompleted},
|
|
|
+ #{record.activation},
|
|
|
+ #{record.submit},
|
|
|
+ #{record.statDate},
|
|
|
+ #{record.photoClick},
|
|
|
+ #{record.photoClickRatio},
|
|
|
+ #{record.actionRatio},
|
|
|
+ #{record.impression1kCost},
|
|
|
+ #{record.photoClickCost},
|
|
|
+ #{record.actionCost},
|
|
|
+ #{record.eventPayFirstDay},
|
|
|
+ #{record.eventPayPurchaseAmountFirstDay},
|
|
|
+ #{record.eventPayFirstDayRoi},
|
|
|
+ #{record.eventPay},
|
|
|
+ #{record.eventPayPurchaseAmount },
|
|
|
+ #{record.eventPayRoi},
|
|
|
+ #{record.eventRegister},
|
|
|
+ #{record.eventRegisterCost},
|
|
|
+ #{record.eventRegisterRatio},
|
|
|
+ #{record.eventJinJianApp},
|
|
|
+ #{record.eventJinJianAppCost},
|
|
|
+ #{record.eventCreditGrantApp},
|
|
|
+ #{record.eventCreditGrantAppCost},
|
|
|
+ #{record.eventCreditGrantAppRatio},
|
|
|
+ #{record.eventOrderPaid},
|
|
|
+ #{record.eventOrderPaidPurchaseAmount},
|
|
|
+ #{record.eventJinJianLandingPage },
|
|
|
+ #{record.eventJinJianLandingPageCost},
|
|
|
+ #{record.eventCreditGrantLandingPage},
|
|
|
+ #{record.eventCreditGrantLandingPageCost},
|
|
|
+ #{record.eventCreditGrantLandingRatio},
|
|
|
+ #{record.eventNextDayStayCost},
|
|
|
+ #{record.eventNextDayStayRatio},
|
|
|
+ #{record.formActionRatio},
|
|
|
+ #{record.eventOrderPaidCost},
|
|
|
+ #{record.eventNextDayStay},
|
|
|
+ #{record.formCost},
|
|
|
+ #{record.formCount},
|
|
|
+ #{record.play3sRatio}
|
|
|
+ )
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
|
|
|
-</mapper>
|
|
|
+</mapper>
|