|
@@ -0,0 +1,255 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
+
|
|
|
|
+<mapper namespace="flink.zanxiangnet.ad.monitoring.dao.mapper.AdStatOfDayDWDMapper">
|
|
|
|
+
|
|
|
|
+ <sql id="Base_Column_List">
|
|
|
|
+ stat_day, account_id,
|
|
|
|
+ campaign_id, agency_account_id,
|
|
|
|
+ wechat_account_id, wechat_agency_id,
|
|
|
|
+ adgroup_id, ad_id, create_time,
|
|
|
|
+ cost_deviation_rate_total, cost_deviation_rate_day,
|
|
|
|
+ cost_total, cost_day,
|
|
|
|
+ compensation_amount_total, compensation_amount_day,
|
|
|
|
+ view_count_total, view_count_day,
|
|
|
|
+ thousand_display_price_all, thousand_display_price_day,
|
|
|
|
+ view_user_count_total, view_user_count_day,
|
|
|
|
+ avg_view_per_user_all, avg_view_per_user_day,
|
|
|
|
+ valid_click_count_total, valid_click_count_day,
|
|
|
|
+ click_user_count_total, click_user_count_day,
|
|
|
|
+ ctr_all, ctr_day,
|
|
|
|
+ cpc_all, cpc_day,
|
|
|
|
+ valuable_click_count_total, valuable_click_count_day,
|
|
|
|
+ valuable_click_rate_all, valuable_click_rate_day,
|
|
|
|
+ valuable_click_cost_all, valuable_click_cost_day,
|
|
|
|
+ conversions_count_total, conversions_count_day,
|
|
|
|
+ conversions_cost_all, conversions_cost_day,
|
|
|
|
+ conversions_rate_all, conversions_rate_day,
|
|
|
|
+ deep_conversions_count_total, deep_conversions_count_day,
|
|
|
|
+ deep_conversions_cost_all, deep_conversions_cost_day,
|
|
|
|
+ deep_conversions_rate_all, deep_conversions_rate_day,
|
|
|
|
+ key_page_uv_total, key_page_uv_day,
|
|
|
|
+ order_count_total, order_count_day,
|
|
|
|
+ first_day_order_count_total, first_day_order_count_day,
|
|
|
|
+ web_order_cost_all, web_order_cost_day,
|
|
|
|
+ order_rate_all, order_rate_day,
|
|
|
|
+ order_amount_total, order_amount_day,
|
|
|
|
+ first_day_order_amount_total, first_day_order_amount_day,
|
|
|
|
+ order_unit_price_all, order_unit_price_day,
|
|
|
|
+ order_roi_all, order_roi_day,
|
|
|
|
+ sign_in_count_total, sign_in_count_day,
|
|
|
|
+ add_wishlist_count_total, add_wishlist_count_day,
|
|
|
|
+ view_commodity_page_uv_total, view_commodity_page_uv_day,
|
|
|
|
+ page_reservation_count_total, page_reservation_count_day,
|
|
|
|
+ leads_purchase_uv_total, leads_purchase_uv_day,
|
|
|
|
+ leads_purchase_cost_all, leads_purchase_cost_day,
|
|
|
|
+ leads_purchase_rate_all, leads_purchase_rate_day,
|
|
|
|
+ scan_follow_count_total, scan_follow_count_day,
|
|
|
|
+ wechat_app_register_uv_total, wechat_app_register_uv_day,
|
|
|
|
+ wechat_minigame_register_cost_all, wechat_minigame_register_cost_day,
|
|
|
|
+ wechat_minigame_register_rate_all, wechat_minigame_register_rate_day,
|
|
|
|
+ wechat_minigame_arpu_all, wechat_minigame_arpu_day,
|
|
|
|
+ wechat_minigame_retention_count_total, wechat_minigame_retention_count_day,
|
|
|
|
+ wechat_minigame_checkout_count_total, wechat_minigame_checkout_count_day,
|
|
|
|
+ wechat_minigame_checkout_amount_total, wechat_minigame_checkout_amount_day,
|
|
|
|
+ official_account_follow_count_total, official_account_follow_count_day,
|
|
|
|
+ official_account_follow_cost_all, official_account_follow_cost_day,
|
|
|
|
+ official_account_follow_rate_all, official_account_follow_rate_day,
|
|
|
|
+ official_account_register_user_count_total, official_account_register_user_count_day,
|
|
|
|
+ official_account_register_rate_all, official_account_register_rate_day,
|
|
|
|
+ official_account_register_cost_all, official_account_register_cost_day,
|
|
|
|
+ official_account_register_amount_total, official_account_register_amount_day,
|
|
|
|
+ official_account_register_roi_all, official_account_register_roi_day,
|
|
|
|
+ official_account_apply_count_total, official_account_apply_count_day,
|
|
|
|
+ official_account_apply_user_count_total, official_account_apply_user_count_day,
|
|
|
|
+ official_account_apply_rate_all, official_account_apply_rate_day,
|
|
|
|
+ official_account_apply_cost_all, official_account_apply_cost_day,
|
|
|
|
+ official_account_apply_amount_total, official_account_apply_amount_day,
|
|
|
|
+ official_account_apply_roi_all, official_account_apply_roi_day,
|
|
|
|
+ official_account_order_count_total, official_account_order_count_day,
|
|
|
|
+ official_account_first_day_order_count_total, official_account_first_day_order_count_day,
|
|
|
|
+ official_account_order_user_count_total, official_account_order_user_count_day,
|
|
|
|
+ official_account_order_rate_all, official_account_order_rate_day,
|
|
|
|
+ official_account_order_cost_all, official_account_order_cost_day,
|
|
|
|
+ official_account_order_amount_total, official_account_order_amount_day,
|
|
|
|
+ official_account_first_day_order_amount_total, official_account_first_day_order_amount_day,
|
|
|
|
+ official_account_order_roi_all, official_account_order_roi_day,
|
|
|
|
+ official_account_consult_count_total, official_account_consult_count_day,
|
|
|
|
+ official_account_reader_count_total, official_account_reader_count_day,
|
|
|
|
+ official_account_credit_apply_user_count_total, official_account_credit_apply_user_count_day,
|
|
|
|
+ official_account_credit_user_count_total, official_account_credit_user_count_day,
|
|
|
|
+ forward_count_total, forward_count_day,
|
|
|
|
+ forward_user_count_total, forward_user_count_day,
|
|
|
|
+ no_interest_count_total, no_interest_count_day
|
|
|
|
+ </sql>
|
|
|
|
+
|
|
|
|
+ <select id="selectAll" resultType="AdStatOfDayDWD">
|
|
|
|
+ select * from ad_stat_of_day
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <insert id="add">
|
|
|
|
+ INSERT INTO ad_stat_of_day(<include refid="Base_Column_List"/>)
|
|
|
|
+ VALUES
|
|
|
|
+ ( #{item.statDay}, #{item.accountId},
|
|
|
|
+ #{item.campaignId}, #{item.agencyAccountId},
|
|
|
|
+ #{item.wechatAccountId}, #{item.wechatAgencyId},
|
|
|
|
+ #{item.adgroupId}, #{item.adId}, #{item.createTime},
|
|
|
|
+ #{item.costDeviationRateTotal}, #{item.costDeviationRateDay},
|
|
|
|
+ #{item.costTotal}, #{item.costDay},
|
|
|
|
+ #{item.compensationAmountTotal}, #{item.compensationAmountDay},
|
|
|
|
+ #{item.viewCountTotal}, #{item.viewCountDay},
|
|
|
|
+ #{item.thousandDisplayPriceAll}, #{item.thousandDisplayPriceDay},
|
|
|
|
+ #{item.viewUserCountTotal}, #{item.viewUserCountDay},
|
|
|
|
+ #{item.avgViewPerUserAll}, #{item.avgViewPerUserDay},
|
|
|
|
+ #{item.validClickCountTotal}, #{item.validClickCountDay},
|
|
|
|
+ #{item.clickUserCountTotal}, #{item.clickUserCountDay},
|
|
|
|
+ #{item.ctrAll}, #{item.ctrDay},
|
|
|
|
+ #{item.cpcAll}, #{item.cpcDay},
|
|
|
|
+ #{item.valuableClickCountTotal}, #{item.valuableClickCountDay},
|
|
|
|
+ #{item.valuableClickRateAll}, #{item.valuableClickRateDay},
|
|
|
|
+ #{item.valuableClickCostAll}, #{item.valuableClickCostDay},
|
|
|
|
+ #{item.conversionsCountTotal}, #{item.conversionsCountDay},
|
|
|
|
+ #{item.conversionsCostAll}, #{item.conversionsCostDay},
|
|
|
|
+ #{item.conversionsRateAll}, #{item.conversionsRateDay},
|
|
|
|
+ #{item.deepConversionsCountTotal}, #{item.deepConversionsCountDay},
|
|
|
|
+ #{item.deepConversionsCostAll}, #{item.deepConversionsCostDay},
|
|
|
|
+ #{item.deepConversionsRateAll}, #{item.deepConversionsRateDay},
|
|
|
|
+ #{item.keyPageUvTotal}, #{item.keyPageUvDay},
|
|
|
|
+ #{item.orderCountTotal}, #{item.orderCountDay},
|
|
|
|
+ #{item.firstDayOrderCountTotal}, #{item.firstDayOrderCountDay},
|
|
|
|
+ #{item.webOrderCostAll}, #{item.webOrderCostDay},
|
|
|
|
+ #{item.orderRateAll}, #{item.orderRateDay},
|
|
|
|
+ #{item.orderAmountTotal}, #{item.orderAmountDay},
|
|
|
|
+ #{item.firstDayOrderAmountTotal}, #{item.firstDayOrderAmountDay},
|
|
|
|
+ #{item.orderUnitPriceAll}, #{item.orderUnitPriceDay},
|
|
|
|
+ #{item.orderRoiAll}, #{item.orderRoiDay},
|
|
|
|
+ #{item.signInCountTotal}, #{item.signInCountDay},
|
|
|
|
+ #{item.addWishlistCountTotal}, #{item.addWishlistCountDay},
|
|
|
|
+ #{item.viewCommodityPageUvTotal}, #{item.viewCommodityPageUvDay},
|
|
|
|
+ #{item.pageReservationCountTotal}, #{item.pageReservationCountDay},
|
|
|
|
+ #{item.leadsPurchaseUvTotal}, #{item.leadsPurchaseUvDay},
|
|
|
|
+ #{item.leadsPurchaseCostAll}, #{item.leadsPurchaseCostDay},
|
|
|
|
+ #{item.leadsPurchaseRateAll}, #{item.leadsPurchaseRateDay},
|
|
|
|
+ #{item.scanFollowCountTotal}, #{item.scanFollowCountDay},
|
|
|
|
+ #{item.wechatAppRegisterUvTotal}, #{item.wechatAppRegisterUvDay},
|
|
|
|
+ #{item.wechatMinigameRegisterCostAll}, #{item.wechatMinigameRegisterCostDay},
|
|
|
|
+ #{item.wechatMinigameRegisterRateAll}, #{item.wechatMinigameRegisterRateDay},
|
|
|
|
+ #{item.wechatMinigameArpuAll}, #{item.wechatMinigameArpuDay},
|
|
|
|
+ #{item.wechatMinigameRetentionCountTotal}, #{item.wechatMinigameRetentionCountDay},
|
|
|
|
+ #{item.wechatMinigameCheckoutCountTotal}, #{item.wechatMinigameCheckoutCountDay},
|
|
|
|
+ #{item.wechatMinigameCheckoutAmountTotal}, #{item.wechatMinigameCheckoutAmountDay},
|
|
|
|
+ #{item.officialAccountFollowCountTotal}, #{item.officialAccountFollowCountDay},
|
|
|
|
+ #{item.officialAccountFollowCostAll}, #{item.officialAccountFollowCostDay},
|
|
|
|
+ #{item.officialAccountFollowRateAll}, #{item.officialAccountFollowRateDay},
|
|
|
|
+ #{item.officialAccountRegisterUserCountTotal}, #{item.officialAccountRegisterUserCountDay},
|
|
|
|
+ #{item.officialAccountRegisterRateAll}, #{item.officialAccountRegisterRateDay},
|
|
|
|
+ #{item.officialAccountRegisterCostAll}, #{item.officialAccountRegisterCostDay},
|
|
|
|
+ #{item.officialAccountRegisterAmountTotal}, #{item.officialAccountRegisterAmountDay},
|
|
|
|
+ #{item.officialAccountRegisterRoiAll}, #{item.officialAccountRegisterRoiDay},
|
|
|
|
+ #{item.officialAccountApplyCountTotal}, #{item.officialAccountApplyCountDay},
|
|
|
|
+ #{item.officialAccountApplyUserCountTotal}, #{item.officialAccountApplyUserCountDay},
|
|
|
|
+ #{item.officialAccountApplyRateAll}, #{item.officialAccountApplyRateDay},
|
|
|
|
+ #{item.officialAccountApplyCostAll}, #{item.officialAccountApplyCostDay},
|
|
|
|
+ #{item.officialAccountApplyAmountTotal}, #{item.officialAccountApplyAmountDay},
|
|
|
|
+ #{item.officialAccountApplyRoiAll}, #{item.officialAccountApplyRoiDay},
|
|
|
|
+ #{item.officialAccountOrderCountTotal}, #{item.officialAccountOrderCountDay},
|
|
|
|
+ #{item.officialAccountFirstDayOrderCountTotal}, #{item.officialAccountFirstDayOrderCountDay},
|
|
|
|
+ #{item.officialAccountOrderUserCountTotal}, #{item.officialAccountOrderUserCountDay},
|
|
|
|
+ #{item.officialAccountOrderRateAll}, #{item.officialAccountOrderRateDay},
|
|
|
|
+ #{item.officialAccountOrderCostAll}, #{item.officialAccountOrderCostDay},
|
|
|
|
+ #{item.officialAccountOrderAmountTotal}, #{item.officialAccountOrderAmountDay},
|
|
|
|
+ #{item.officialAccountFirstDayOrderAmountTotal}, #{item.officialAccountFirstDayOrderAmountDay},
|
|
|
|
+ #{item.officialAccountOrderRoiAll}, #{item.officialAccountOrderRoiDay},
|
|
|
|
+ #{item.officialAccountConsultCountTotal}, #{item.officialAccountConsultCountDay},
|
|
|
|
+ #{item.officialAccountReaderCountTotal}, #{item.officialAccountReaderCountDay},
|
|
|
|
+ #{item.officialAccountCreditApplyUserCountTotal}, #{item.officialAccountCreditApplyUserCountDay},
|
|
|
|
+ #{item.officialAccountCreditUserCountTotal}, #{item.officialAccountCreditUserCountDay},
|
|
|
|
+ #{item.forwardCountTotal}, #{item.forwardCountDay},
|
|
|
|
+ #{item.forwardUserCountTotal}, #{item.forwardUserCountDay},
|
|
|
|
+ #{item.noInterestCountTotal}, #{item.noInterestCountDay})
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+ <insert id="addBatch">
|
|
|
|
+ INSERT INTO ad_stat_of_day(<include refid="Base_Column_List"/>)
|
|
|
|
+ VALUES
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator=",">
|
|
|
|
+ ( #{item.statDay}, #{item.accountId},
|
|
|
|
+ #{item.campaignId}, #{item.agencyAccountId},
|
|
|
|
+ #{item.wechatAccountId}, #{item.wechatAgencyId},
|
|
|
|
+ #{item.adgroupId}, #{item.adId}, #{item.createTime},
|
|
|
|
+ #{item.costDeviationRateTotal}, #{item.costDeviationRateDay},
|
|
|
|
+ #{item.costTotal}, #{item.costDay},
|
|
|
|
+ #{item.compensationAmountTotal}, #{item.compensationAmountDay},
|
|
|
|
+ #{item.viewCountTotal}, #{item.viewCountDay},
|
|
|
|
+ #{item.thousandDisplayPriceAll}, #{item.thousandDisplayPriceDay},
|
|
|
|
+ #{item.viewUserCountTotal}, #{item.viewUserCountDay},
|
|
|
|
+ #{item.avgViewPerUserAll}, #{item.avgViewPerUserDay},
|
|
|
|
+ #{item.validClickCountTotal}, #{item.validClickCountDay},
|
|
|
|
+ #{item.clickUserCountTotal}, #{item.clickUserCountDay},
|
|
|
|
+ #{item.ctrAll}, #{item.ctrDay},
|
|
|
|
+ #{item.cpcAll}, #{item.cpcDay},
|
|
|
|
+ #{item.valuableClickCountTotal}, #{item.valuableClickCountDay},
|
|
|
|
+ #{item.valuableClickRateAll}, #{item.valuableClickRateDay},
|
|
|
|
+ #{item.valuableClickCostAll}, #{item.valuableClickCostDay},
|
|
|
|
+ #{item.conversionsCountTotal}, #{item.conversionsCountDay},
|
|
|
|
+ #{item.conversionsCostAll}, #{item.conversionsCostDay},
|
|
|
|
+ #{item.conversionsRateAll}, #{item.conversionsRateDay},
|
|
|
|
+ #{item.deepConversionsCountTotal}, #{item.deepConversionsCountDay},
|
|
|
|
+ #{item.deepConversionsCostAll}, #{item.deepConversionsCostDay},
|
|
|
|
+ #{item.deepConversionsRateAll}, #{item.deepConversionsRateDay},
|
|
|
|
+ #{item.keyPageUvTotal}, #{item.keyPageUvDay},
|
|
|
|
+ #{item.orderCountTotal}, #{item.orderCountDay},
|
|
|
|
+ #{item.firstDayOrderCountTotal}, #{item.firstDayOrderCountDay},
|
|
|
|
+ #{item.webOrderCostAll}, #{item.webOrderCostDay},
|
|
|
|
+ #{item.orderRateAll}, #{item.orderRateDay},
|
|
|
|
+ #{item.orderAmountTotal}, #{item.orderAmountDay},
|
|
|
|
+ #{item.firstDayOrderAmountTotal}, #{item.firstDayOrderAmountDay},
|
|
|
|
+ #{item.orderUnitPriceAll}, #{item.orderUnitPriceDay},
|
|
|
|
+ #{item.orderRoiAll}, #{item.orderRoiDay},
|
|
|
|
+ #{item.signInCountTotal}, #{item.signInCountDay},
|
|
|
|
+ #{item.addWishlistCountTotal}, #{item.addWishlistCountDay},
|
|
|
|
+ #{item.viewCommodityPageUvTotal}, #{item.viewCommodityPageUvDay},
|
|
|
|
+ #{item.pageReservationCountTotal}, #{item.pageReservationCountDay},
|
|
|
|
+ #{item.leadsPurchaseUvTotal}, #{item.leadsPurchaseUvDay},
|
|
|
|
+ #{item.leadsPurchaseCostAll}, #{item.leadsPurchaseCostDay},
|
|
|
|
+ #{item.leadsPurchaseRateAll}, #{item.leadsPurchaseRateDay},
|
|
|
|
+ #{item.scanFollowCountTotal}, #{item.scanFollowCountDay},
|
|
|
|
+ #{item.wechatAppRegisterUvTotal}, #{item.wechatAppRegisterUvDay},
|
|
|
|
+ #{item.wechatMinigameRegisterCostAll}, #{item.wechatMinigameRegisterCostDay},
|
|
|
|
+ #{item.wechatMinigameRegisterRateAll}, #{item.wechatMinigameRegisterRateDay},
|
|
|
|
+ #{item.wechatMinigameArpuAll}, #{item.wechatMinigameArpuDay},
|
|
|
|
+ #{item.wechatMinigameRetentionCountTotal}, #{item.wechatMinigameRetentionCountDay},
|
|
|
|
+ #{item.wechatMinigameCheckoutCountTotal}, #{item.wechatMinigameCheckoutCountDay},
|
|
|
|
+ #{item.wechatMinigameCheckoutAmountTotal}, #{item.wechatMinigameCheckoutAmountDay},
|
|
|
|
+ #{item.officialAccountFollowCountTotal}, #{item.officialAccountFollowCountDay},
|
|
|
|
+ #{item.officialAccountFollowCostAll}, #{item.officialAccountFollowCostDay},
|
|
|
|
+ #{item.officialAccountFollowRateAll}, #{item.officialAccountFollowRateDay},
|
|
|
|
+ #{item.officialAccountRegisterUserCountTotal}, #{item.officialAccountRegisterUserCountDay},
|
|
|
|
+ #{item.officialAccountRegisterRateAll}, #{item.officialAccountRegisterRateDay},
|
|
|
|
+ #{item.officialAccountRegisterCostAll}, #{item.officialAccountRegisterCostDay},
|
|
|
|
+ #{item.officialAccountRegisterAmountTotal}, #{item.officialAccountRegisterAmountDay},
|
|
|
|
+ #{item.officialAccountRegisterRoiAll}, #{item.officialAccountRegisterRoiDay},
|
|
|
|
+ #{item.officialAccountApplyCountTotal}, #{item.officialAccountApplyCountDay},
|
|
|
|
+ #{item.officialAccountApplyUserCountTotal}, #{item.officialAccountApplyUserCountDay},
|
|
|
|
+ #{item.officialAccountApplyRateAll}, #{item.officialAccountApplyRateDay},
|
|
|
|
+ #{item.officialAccountApplyCostAll}, #{item.officialAccountApplyCostDay},
|
|
|
|
+ #{item.officialAccountApplyAmountTotal}, #{item.officialAccountApplyAmountDay},
|
|
|
|
+ #{item.officialAccountApplyRoiAll}, #{item.officialAccountApplyRoiDay},
|
|
|
|
+ #{item.officialAccountOrderCountTotal}, #{item.officialAccountOrderCountDay},
|
|
|
|
+ #{item.officialAccountFirstDayOrderCountTotal}, #{item.officialAccountFirstDayOrderCountDay},
|
|
|
|
+ #{item.officialAccountOrderUserCountTotal}, #{item.officialAccountOrderUserCountDay},
|
|
|
|
+ #{item.officialAccountOrderRateAll}, #{item.officialAccountOrderRateDay},
|
|
|
|
+ #{item.officialAccountOrderCostAll}, #{item.officialAccountOrderCostDay},
|
|
|
|
+ #{item.officialAccountOrderAmountTotal}, #{item.officialAccountOrderAmountDay},
|
|
|
|
+ #{item.officialAccountFirstDayOrderAmountTotal}, #{item.officialAccountFirstDayOrderAmountDay},
|
|
|
|
+ #{item.officialAccountOrderRoiAll}, #{item.officialAccountOrderRoiDay},
|
|
|
|
+ #{item.officialAccountConsultCountTotal}, #{item.officialAccountConsultCountDay},
|
|
|
|
+ #{item.officialAccountReaderCountTotal}, #{item.officialAccountReaderCountDay},
|
|
|
|
+ #{item.officialAccountCreditApplyUserCountTotal}, #{item.officialAccountCreditApplyUserCountDay},
|
|
|
|
+ #{item.officialAccountCreditUserCountTotal}, #{item.officialAccountCreditUserCountDay},
|
|
|
|
+ #{item.forwardCountTotal}, #{item.forwardCountDay},
|
|
|
|
+ #{item.forwardUserCountTotal}, #{item.forwardUserCountDay},
|
|
|
|
+ #{item.noInterestCountTotal}, #{item.noInterestCountDay})
|
|
|
|
+ </foreach>
|
|
|
|
+ </insert>
|
|
|
|
+</mapper>
|