|
@@ -12,6 +12,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 广告维度的小时统计数据
|
|
* 广告维度的小时统计数据
|
|
@@ -1286,201 +1287,179 @@ public class AdStatOfHourDWD {
|
|
return adStatOfHour;
|
|
return adStatOfHour;
|
|
}
|
|
}
|
|
|
|
|
|
- public static AdStatOfHourDWD reduce(AdStatOfDayDWD yesterdayDWD, AdStatOfHourDWD value1, AdDataOfHourODS value2, long createTime) {
|
|
|
|
|
|
+ public static AdStatOfHourDWD reduce(AdStatOfDayDWD yesterdayDWD, List<AdDataOfHourODS> hourODSList, AdDataOfHourODS hourODS, long createTime) {
|
|
AdStatOfHourDWD result = new AdStatOfHourDWD();
|
|
AdStatOfHourDWD result = new AdStatOfHourDWD();
|
|
- BeanUtils.copyProperties(value2, result);
|
|
|
|
|
|
+ BeanUtils.copyProperties(hourODS, result);
|
|
result.setCreateTime(new Date(createTime));
|
|
result.setCreateTime(new Date(createTime));
|
|
|
|
|
|
- result.setCostDeviationRateHour(value2.getCostDeviationRate());
|
|
|
|
- result.setCostHour(value2.getCost());
|
|
|
|
- result.setCompensationAmountHour(value2.getCompensationAmount());
|
|
|
|
- result.setViewCountHour(value2.getViewCount());
|
|
|
|
- result.setThousandDisplayPriceHour(value2.getThousandDisplayPrice());
|
|
|
|
- result.setAvgViewPerUserHour(value2.getAvgViewPerUser());
|
|
|
|
- result.setValidClickCountHour(value2.getValidClickCount());
|
|
|
|
- result.setCtrHour(value2.getCtr());
|
|
|
|
- result.setCpcHour(value2.getCpc());
|
|
|
|
- result.setValuableClickCountHour(value2.getValuableClickCount());
|
|
|
|
- result.setValuableClickRateHour(value2.getValuableClickRate());
|
|
|
|
- result.setValuableClickCostHour(value2.getValuableClickCost());
|
|
|
|
- result.setConversionsCountHour(value2.getConversionsCount());
|
|
|
|
- result.setConversionsCostHour(value2.getConversionsCost());
|
|
|
|
- result.setConversionsRateHour(value2.getConversionsRate());
|
|
|
|
- result.setDeepConversionsCountHour(value2.getDeepConversionsCount());
|
|
|
|
- result.setDeepConversionsCostHour(value2.getDeepConversionsCost());
|
|
|
|
- result.setDeepConversionsRateHour(value2.getDeepConversionsRate());
|
|
|
|
- result.setOrderCountHour(value2.getOrderCount());
|
|
|
|
- result.setFirstDayOrderCountHour(value2.getFirstDayOrderCount());
|
|
|
|
- result.setWebOrderCostHour(value2.getWebOrderCost());
|
|
|
|
- result.setOrderRateHour(value2.getOrderRate());
|
|
|
|
- result.setOrderAmountHour(value2.getOrderAmount());
|
|
|
|
- result.setFirstDayOrderAmountHour(value2.getFirstDayOrderAmount());
|
|
|
|
- result.setOrderUnitPriceHour(value2.getOrderUnitPrice());
|
|
|
|
- result.setOrderRoiHour(value2.getOrderRoi());
|
|
|
|
- result.setSignInCountHour(value2.getSignInCount());
|
|
|
|
- result.setScanFollowCountHour(value2.getScanFollowCount());
|
|
|
|
- result.setWechatAppRegisterUvHour(value2.getWechatAppRegisterUv());
|
|
|
|
- result.setWechatMinigameRegisterCostHour(value2.getWechatMinigameRegisterCost());
|
|
|
|
- result.setWechatMinigameRegisterRateHour(value2.getWechatMinigameRegisterRate());
|
|
|
|
- result.setWechatMinigameArpuHour(value2.getWechatMinigameArpu());
|
|
|
|
- result.setWechatMinigameRetentionCountHour(value2.getWechatMinigameRetentionCount());
|
|
|
|
- result.setWechatMinigameCheckoutCountHour(value2.getWechatMinigameCheckoutCount());
|
|
|
|
- result.setWechatMinigameCheckoutAmountHour(value2.getWechatMinigameCheckoutAmount());
|
|
|
|
- result.setOfficialAccountFollowCountHour(value2.getOfficialAccountFollowCount());
|
|
|
|
- result.setOfficialAccountFollowRateHour(value2.getOfficialAccountFollowRate());
|
|
|
|
- result.setOfficialAccountRegisterUserCountHour(value2.getOfficialAccountRegisterUserCount());
|
|
|
|
- result.setOfficialAccountRegisterRateHour(value2.getOfficialAccountRegisterRate());
|
|
|
|
- result.setOfficialAccountRegisterCostHour(value2.getOfficialAccountRegisterCost());
|
|
|
|
- result.setOfficialAccountRegisterAmountHour(value2.getOfficialAccountRegisterAmount());
|
|
|
|
- result.setOfficialAccountRegisterRoiHour(value2.getOfficialAccountRegisterRoi());
|
|
|
|
- result.setOfficialAccountApplyCountHour(value2.getOfficialAccountApplyCount());
|
|
|
|
- result.setOfficialAccountApplyUserCountHour(value2.getOfficialAccountApplyUserCount());
|
|
|
|
- result.setOfficialAccountApplyRateHour(value2.getOfficialAccountApplyRate());
|
|
|
|
- result.setOfficialAccountApplyCostHour(value2.getOfficialAccountApplyCost());
|
|
|
|
- result.setOfficialAccountApplyAmountHour(value2.getOfficialAccountApplyAmount());
|
|
|
|
- result.setOfficialAccountApplyRoiHour(value2.getOfficialAccountApplyRoi());
|
|
|
|
- result.setOfficialAccountOrderCountHour(value2.getOfficialAccountOrderCount());
|
|
|
|
- result.setOfficialAccountFirstDayOrderCountHour(value2.getOfficialAccountFirstDayOrderCount());
|
|
|
|
- result.setOfficialAccountOrderUserCountHour(value2.getOfficialAccountOrderUserCount());
|
|
|
|
- result.setOfficialAccountOrderRateHour(value2.getOfficialAccountOrderRate());
|
|
|
|
- result.setOfficialAccountOrderCostHour(value2.getOfficialAccountOrderCost());
|
|
|
|
- result.setOfficialAccountOrderAmountHour(value2.getOfficialAccountOrderAmount());
|
|
|
|
- result.setOfficialAccountFirstDayOrderAmountHour(value2.getOfficialAccountFirstDayOrderAmount());
|
|
|
|
- result.setOfficialAccountOrderRoiHour(value2.getOfficialAccountOrderRoi());
|
|
|
|
- result.setOfficialAccountConsultCountHour(value2.getOfficialAccountConsultCount());
|
|
|
|
- result.setOfficialAccountReaderCountHour(value2.getOfficialAccountReaderCount());
|
|
|
|
- result.setOfficialAccountCreditApplyUserCountHour(value2.getOfficialAccountCreditApplyUserCount());
|
|
|
|
- result.setOfficialAccountCreditUserCountHour(value2.getOfficialAccountCreditUserCount());
|
|
|
|
- result.setForwardCountHour(value2.getForwardCount());
|
|
|
|
- result.setForwardUserCountHour(value2.getForwardUserCount());
|
|
|
|
- result.setNoInterestCountHour(value2.getNoInterestCount());
|
|
|
|
- if (value1 == null) {
|
|
|
|
- result.setCostDeviationRateDay(value2.getCostDeviationRate());
|
|
|
|
- result.setCostDay(value2.getCost());
|
|
|
|
- result.setCompensationAmountDay(value2.getCompensationAmount());
|
|
|
|
- result.setViewCountDay(value2.getViewCount());
|
|
|
|
- result.setThousandDisplayPriceDay(value2.getThousandDisplayPrice());
|
|
|
|
- result.setValidClickCountDay(value2.getValidClickCount());
|
|
|
|
- result.setCtrDay(value2.getCtr());
|
|
|
|
- result.setCpcDay(value2.getCpc());
|
|
|
|
- result.setValuableClickCountDay(value2.getValuableClickCount());
|
|
|
|
- result.setValuableClickRateDay(value2.getValuableClickRate());
|
|
|
|
- result.setValuableClickCostDay(value2.getValuableClickCost());
|
|
|
|
- result.setConversionsCountDay(value2.getConversionsCount());
|
|
|
|
- result.setConversionsCostDay(value2.getConversionsCost());
|
|
|
|
- result.setConversionsRateDay(value2.getConversionsRate());
|
|
|
|
- result.setDeepConversionsCountDay(value2.getDeepConversionsCount());
|
|
|
|
- result.setDeepConversionsCostDay(value2.getDeepConversionsCost());
|
|
|
|
- result.setDeepConversionsRateDay(value2.getDeepConversionsRate());
|
|
|
|
- result.setOrderCountDay(value2.getOrderCount());
|
|
|
|
- result.setFirstDayOrderCountDay(value2.getFirstDayOrderCount());
|
|
|
|
- result.setWebOrderCostDay(value2.getWebOrderCost());
|
|
|
|
- result.setOrderRateDay(value2.getOrderRate());
|
|
|
|
- result.setOrderAmountDay(value2.getOrderAmount());
|
|
|
|
- result.setFirstDayOrderAmountDay(value2.getFirstDayOrderAmount());
|
|
|
|
- result.setOrderUnitPriceDay(value2.getOrderUnitPrice());
|
|
|
|
- result.setOrderRoiDay(value2.getOrderRoi());
|
|
|
|
- result.setSignInCountDay(value2.getSignInCount());
|
|
|
|
- result.setScanFollowCountDay(value2.getScanFollowCount());
|
|
|
|
- result.setWechatAppRegisterUvDay(value2.getWechatAppRegisterUv());
|
|
|
|
- result.setWechatMinigameRegisterCostDay(value2.getWechatMinigameRegisterCost());
|
|
|
|
- result.setWechatMinigameRegisterRateDay(value2.getWechatMinigameRegisterRate());
|
|
|
|
- result.setWechatMinigameArpuDay(value2.getWechatMinigameArpu());
|
|
|
|
- result.setWechatMinigameRetentionCountDay(value2.getWechatMinigameRetentionCount());
|
|
|
|
- result.setWechatMinigameCheckoutCountDay(value2.getWechatMinigameCheckoutCount());
|
|
|
|
- result.setWechatMinigameCheckoutAmountDay(value2.getWechatMinigameCheckoutAmount());
|
|
|
|
- result.setOfficialAccountFollowCountDay(value2.getOfficialAccountFollowCount());
|
|
|
|
- result.setOfficialAccountFollowRateDay(value2.getOfficialAccountFollowRate());
|
|
|
|
- result.setOfficialAccountRegisterUserCountDay(value2.getOfficialAccountRegisterUserCount());
|
|
|
|
- result.setOfficialAccountRegisterRateDay(value2.getOfficialAccountRegisterRate());
|
|
|
|
- result.setOfficialAccountRegisterCostDay(value2.getOfficialAccountRegisterCost());
|
|
|
|
- result.setOfficialAccountRegisterAmountDay(value2.getOfficialAccountRegisterAmount());
|
|
|
|
- result.setOfficialAccountRegisterRoiDay(value2.getOfficialAccountRegisterRoi());
|
|
|
|
- result.setOfficialAccountApplyCountDay(value2.getOfficialAccountApplyCount());
|
|
|
|
- result.setOfficialAccountApplyUserCountDay(value2.getOfficialAccountApplyUserCount());
|
|
|
|
- result.setOfficialAccountApplyRateDay(value2.getOfficialAccountApplyRate());
|
|
|
|
- result.setOfficialAccountApplyCostDay(value2.getOfficialAccountApplyCost());
|
|
|
|
- result.setOfficialAccountApplyAmountDay(value2.getOfficialAccountApplyAmount());
|
|
|
|
- result.setOfficialAccountApplyRoiDay(value2.getOfficialAccountApplyRoi());
|
|
|
|
- result.setOfficialAccountOrderCountDay(value2.getOfficialAccountOrderCount());
|
|
|
|
- result.setOfficialAccountFirstDayOrderCountDay(value2.getOfficialAccountFirstDayOrderCount());
|
|
|
|
- result.setOfficialAccountOrderUserCountDay(value2.getOfficialAccountOrderUserCount());
|
|
|
|
- result.setOfficialAccountOrderRateDay(value2.getOfficialAccountOrderRate());
|
|
|
|
- result.setOfficialAccountOrderCostDay(value2.getOfficialAccountOrderCost());
|
|
|
|
- result.setOfficialAccountOrderAmountDay(value2.getOfficialAccountOrderAmount());
|
|
|
|
- result.setOfficialAccountFirstDayOrderAmountDay(value2.getOfficialAccountFirstDayOrderAmount());
|
|
|
|
- result.setOfficialAccountOrderRoiDay(value2.getOfficialAccountOrderRoi());
|
|
|
|
- result.setOfficialAccountConsultCountDay(value2.getOfficialAccountConsultCount());
|
|
|
|
- result.setOfficialAccountReaderCountDay(value2.getOfficialAccountReaderCount());
|
|
|
|
- result.setOfficialAccountCreditApplyUserCountDay(value2.getOfficialAccountCreditApplyUserCount());
|
|
|
|
- result.setOfficialAccountCreditUserCountDay(value2.getOfficialAccountCreditUserCount());
|
|
|
|
- result.setForwardCountDay(value2.getForwardCount());
|
|
|
|
- result.setForwardUserCountDay(value2.getForwardUserCount());
|
|
|
|
- result.setNoInterestCountDay(value2.getNoInterestCount());
|
|
|
|
- } else {
|
|
|
|
- result.setCostDeviationRateDay(value1.getCostDeviationRateDay() + value2.getCostDeviationRate());
|
|
|
|
- result.setCostDay(value1.getCostDay() + value2.getCost());
|
|
|
|
- result.setCompensationAmountDay(value1.getCompensationAmountDay() + value2.getCompensationAmount());
|
|
|
|
- result.setViewCountDay(value1.getViewCountDay() + value2.getViewCount());
|
|
|
|
- result.setThousandDisplayPriceDay(result.getViewCountDay() == 0 ? 0 : (result.getCostDay() / result.getViewCountDay() * 1000));
|
|
|
|
- result.setValidClickCountDay(value1.getValidClickCountDay() + value2.getValidClickCount());
|
|
|
|
- result.setCtrDay(result.getViewCountDay() == 0 ? 0.0 : result.getValidClickCountDay() / result.getViewCountDay());
|
|
|
|
- result.setCpcDay(result.getValidClickCountDay() == 0 ? 0 : result.getCostDay() / result.getValidClickCountDay());
|
|
|
|
- result.setValuableClickCountDay(value1.getValuableClickCountDay() + value2.getValuableClickCount());
|
|
|
|
- result.setValuableClickRateDay(result.getViewCountDay() == 0 ? 0.0 : result.getValuableClickCountDay() / result.getViewCountDay());
|
|
|
|
- result.setValuableClickCostDay(result.getValuableClickCountDay() == 0 ? 0 : result.getCostDay() / result.getValuableClickCountDay());
|
|
|
|
- result.setConversionsCountDay(value1.getConversionsCountDay() + value2.getConversionsCount());
|
|
|
|
- result.setConversionsCostDay(result.getConversionsCountDay() == 0 ? 0 : result.getCostDay() / result.getConversionsCountDay());
|
|
|
|
- result.setConversionsRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getConversionsCountDay() / result.getValidClickCountDay());
|
|
|
|
- result.setDeepConversionsCountDay(value1.getDeepConversionsCountDay() + value2.getDeepConversionsCount());
|
|
|
|
- result.setDeepConversionsCostDay(result.getDeepConversionsCountDay() == 0 ? 0 : result.getCostDay() / result.getDeepConversionsCountDay());
|
|
|
|
- result.setDeepConversionsRateDay(result.getValuableClickCountDay() == 0 ? 0.0 : result.getDeepConversionsCountDay() / result.getValuableClickCountDay());
|
|
|
|
- result.setOrderCountDay(value1.getOrderCountDay() + value2.getOrderCount());
|
|
|
|
- result.setFirstDayOrderCountDay(value1.getFirstDayOrderCountDay() + value2.getFirstDayOrderCount());
|
|
|
|
- result.setWebOrderCostDay(result.getOrderCountDay() == 0 ? 0 : result.getCostDay() / result.getOrderCountDay());
|
|
|
|
- result.setOrderRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getOrderCountDay() / result.getValidClickCountDay());
|
|
|
|
- result.setOrderAmountDay(value1.getOrderAmountDay() + value2.getOrderAmount());
|
|
|
|
- result.setFirstDayOrderAmountDay(value1.getFirstDayOrderAmountDay() + value2.getFirstDayOrderAmount());
|
|
|
|
- result.setOrderUnitPriceDay(result.getOrderCountDay() == 0 ? 0 : result.getOrderAmountDay() / result.getOrderCountDay());
|
|
|
|
- result.setOrderRoiDay(result.getCostDay() == 0 ? 0.0 : result.getOrderAmountDay() / result.getCostDay());
|
|
|
|
- result.setSignInCountDay(value1.getSignInCountDay() + value2.getSignInCount());
|
|
|
|
- result.setScanFollowCountDay(value1.getScanFollowCountDay() + value2.getScanFollowCount());
|
|
|
|
- result.setWechatAppRegisterUvDay(value1.getWechatAppRegisterUvDay() + value2.getWechatAppRegisterUv());
|
|
|
|
- result.setWechatMinigameRegisterCostDay(result.getWechatAppRegisterUvDay() == 0 ? 0 : result.getCostDay() / result.getWechatAppRegisterUvDay());
|
|
|
|
- result.setWechatMinigameRegisterRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getWechatAppRegisterUvDay() / result.getValidClickCountDay());
|
|
|
|
- result.setWechatMinigameArpuDay(result.getWechatAppRegisterUvDay() == 0 ? 0.0 : result.getOrderAmountDay() / result.getWechatAppRegisterUvDay());
|
|
|
|
- result.setWechatMinigameRetentionCountDay(value1.getWechatMinigameRetentionCountDay() + value2.getWechatMinigameRetentionCount());
|
|
|
|
- result.setWechatMinigameCheckoutCountDay(value1.getWechatMinigameCheckoutCountDay() + value2.getWechatMinigameCheckoutCount());
|
|
|
|
- result.setWechatMinigameCheckoutAmountDay(value1.getWechatMinigameCheckoutAmountDay() + value2.getWechatMinigameCheckoutAmount());
|
|
|
|
- result.setOfficialAccountFollowCountDay(value1.getOfficialAccountFollowCountDay() + value2.getOfficialAccountFollowCount());
|
|
|
|
- result.setOfficialAccountFollowRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getOfficialAccountFollowCountDay() / result.getValidClickCountDay());
|
|
|
|
- result.setOfficialAccountRegisterUserCountDay(value1.getOfficialAccountRegisterUserCountDay() + value2.getOfficialAccountRegisterUserCount());
|
|
|
|
- result.setOfficialAccountRegisterRateDay(result.getOfficialAccountFollowCountDay() == 0 ? 0.0 : result.getOfficialAccountRegisterUserCountDay() / result.getOfficialAccountFollowCountDay());
|
|
|
|
- result.setOfficialAccountRegisterCostDay(result.getOfficialAccountRegisterUserCountDay() == 0 ? 0 : result.getCostDay() / result.getOfficialAccountRegisterUserCountDay());
|
|
|
|
- result.setOfficialAccountRegisterAmountDay(value1.getOfficialAccountRegisterAmountDay() + value2.getOfficialAccountRegisterAmount());
|
|
|
|
- result.setOfficialAccountRegisterRoiDay(result.getCostDay() == 0 ? 0 : result.getOfficialAccountRegisterAmountDay() / result.getCostDay());
|
|
|
|
- result.setOfficialAccountApplyCountDay(value1.getOfficialAccountApplyCountDay() + value2.getOfficialAccountApplyCount());
|
|
|
|
- result.setOfficialAccountApplyUserCountDay(value1.getOfficialAccountApplyUserCountDay() + value2.getOfficialAccountApplyUserCount());
|
|
|
|
- result.setOfficialAccountApplyRateDay(result.getOfficialAccountFollowCountDay() == 0 ? 0.0 : result.getOfficialAccountApplyUserCountDay() / result.getOfficialAccountFollowCountDay());
|
|
|
|
- result.setOfficialAccountApplyCostDay(result.getOfficialAccountApplyUserCountDay() == 0 ? 0 : result.getCostDay() / result.getOfficialAccountApplyUserCountDay());
|
|
|
|
- result.setOfficialAccountApplyAmountDay(value1.getOfficialAccountApplyAmountDay() + value2.getOfficialAccountApplyAmount());
|
|
|
|
- result.setOfficialAccountApplyRoiDay(result.getCostDay() == 0 ? 0 : result.getOfficialAccountApplyAmountDay() / result.getCostDay());
|
|
|
|
- result.setOfficialAccountOrderCountDay(value1.getOfficialAccountOrderCountDay() + value2.getOfficialAccountOrderCount());
|
|
|
|
- result.setOfficialAccountFirstDayOrderCountDay(value1.getOfficialAccountFirstDayOrderCountDay() + value2.getOfficialAccountFirstDayOrderCount());
|
|
|
|
- result.setOfficialAccountOrderUserCountDay(value1.getOfficialAccountOrderUserCountDay() + value2.getOfficialAccountOrderUserCount());
|
|
|
|
- result.setOfficialAccountOrderRateDay(result.getOfficialAccountFollowCountDay() == 0 ? 0.0 : result.getOfficialAccountOrderUserCountDay() / result.getOfficialAccountFollowCountDay());
|
|
|
|
- result.setOfficialAccountOrderCostDay(result.getOfficialAccountOrderCountDay() == 0 ? 0 : result.getCostDay() / result.getOfficialAccountOrderCountDay());
|
|
|
|
- result.setOfficialAccountOrderAmountDay(value1.getOfficialAccountOrderAmountDay() + value2.getOfficialAccountOrderAmount());
|
|
|
|
- result.setOfficialAccountFirstDayOrderAmountDay(value1.getOfficialAccountFirstDayOrderAmountDay() + value2.getOfficialAccountFirstDayOrderAmount());
|
|
|
|
- result.setOfficialAccountOrderRoiDay(result.getCostDay() == 0 ? 0 : result.getOfficialAccountOrderAmountDay() / result.getCostDay());
|
|
|
|
- result.setOfficialAccountConsultCountDay(value1.getOfficialAccountConsultCountDay() + value2.getOfficialAccountConsultCount());
|
|
|
|
- result.setOfficialAccountReaderCountDay(value1.getOfficialAccountReaderCountDay() + value2.getOfficialAccountReaderCount());
|
|
|
|
- result.setOfficialAccountCreditApplyUserCountDay(value1.getOfficialAccountCreditApplyUserCountDay() + value2.getOfficialAccountCreditApplyUserCount());
|
|
|
|
- result.setOfficialAccountCreditUserCountDay(value1.getOfficialAccountCreditUserCountDay() + value2.getOfficialAccountCreditUserCount());
|
|
|
|
- result.setForwardCountDay(value1.getForwardCountDay() + value2.getForwardCount());
|
|
|
|
- result.setForwardUserCountDay(value1.getForwardUserCountDay() + value2.getForwardUserCount());
|
|
|
|
- result.setNoInterestCountDay(value1.getNoInterestCountDay() + value2.getNoInterestCount());
|
|
|
|
|
|
+ // 小时数据
|
|
|
|
+ result.setCostDeviationRateHour(hourODS.getCostDeviationRate());
|
|
|
|
+ result.setCostHour(hourODS.getCost());
|
|
|
|
+ result.setCompensationAmountHour(hourODS.getCompensationAmount());
|
|
|
|
+ result.setViewCountHour(hourODS.getViewCount());
|
|
|
|
+ result.setThousandDisplayPriceHour(hourODS.getThousandDisplayPrice());
|
|
|
|
+ result.setAvgViewPerUserHour(hourODS.getAvgViewPerUser());
|
|
|
|
+ result.setValidClickCountHour(hourODS.getValidClickCount());
|
|
|
|
+ result.setCtrHour(hourODS.getCtr());
|
|
|
|
+ result.setCpcHour(hourODS.getCpc());
|
|
|
|
+ result.setValuableClickCountHour(hourODS.getValuableClickCount());
|
|
|
|
+ result.setValuableClickRateHour(hourODS.getValuableClickRate());
|
|
|
|
+ result.setValuableClickCostHour(hourODS.getValuableClickCost());
|
|
|
|
+ result.setConversionsCountHour(hourODS.getConversionsCount());
|
|
|
|
+ result.setConversionsCostHour(hourODS.getConversionsCost());
|
|
|
|
+ result.setConversionsRateHour(hourODS.getConversionsRate());
|
|
|
|
+ result.setDeepConversionsCountHour(hourODS.getDeepConversionsCount());
|
|
|
|
+ result.setDeepConversionsCostHour(hourODS.getDeepConversionsCost());
|
|
|
|
+ result.setDeepConversionsRateHour(hourODS.getDeepConversionsRate());
|
|
|
|
+ result.setOrderCountHour(hourODS.getOrderCount());
|
|
|
|
+ result.setFirstDayOrderCountHour(hourODS.getFirstDayOrderCount());
|
|
|
|
+ result.setWebOrderCostHour(hourODS.getWebOrderCost());
|
|
|
|
+ result.setOrderRateHour(hourODS.getOrderRate());
|
|
|
|
+ result.setOrderAmountHour(hourODS.getOrderAmount());
|
|
|
|
+ result.setFirstDayOrderAmountHour(hourODS.getFirstDayOrderAmount());
|
|
|
|
+ result.setOrderUnitPriceHour(hourODS.getOrderUnitPrice());
|
|
|
|
+ result.setOrderRoiHour(hourODS.getOrderRoi());
|
|
|
|
+ result.setSignInCountHour(hourODS.getSignInCount());
|
|
|
|
+ result.setScanFollowCountHour(hourODS.getScanFollowCount());
|
|
|
|
+ result.setWechatAppRegisterUvHour(hourODS.getWechatAppRegisterUv());
|
|
|
|
+ result.setWechatMinigameRegisterCostHour(hourODS.getWechatMinigameRegisterCost());
|
|
|
|
+ result.setWechatMinigameRegisterRateHour(hourODS.getWechatMinigameRegisterRate());
|
|
|
|
+ result.setWechatMinigameArpuHour(hourODS.getWechatMinigameArpu());
|
|
|
|
+ result.setWechatMinigameRetentionCountHour(hourODS.getWechatMinigameRetentionCount());
|
|
|
|
+ result.setWechatMinigameCheckoutCountHour(hourODS.getWechatMinigameCheckoutCount());
|
|
|
|
+ result.setWechatMinigameCheckoutAmountHour(hourODS.getWechatMinigameCheckoutAmount());
|
|
|
|
+ result.setOfficialAccountFollowCountHour(hourODS.getOfficialAccountFollowCount());
|
|
|
|
+ result.setOfficialAccountFollowRateHour(hourODS.getOfficialAccountFollowRate());
|
|
|
|
+ result.setOfficialAccountRegisterUserCountHour(hourODS.getOfficialAccountRegisterUserCount());
|
|
|
|
+ result.setOfficialAccountRegisterRateHour(hourODS.getOfficialAccountRegisterRate());
|
|
|
|
+ result.setOfficialAccountRegisterCostHour(hourODS.getOfficialAccountRegisterCost());
|
|
|
|
+ result.setOfficialAccountRegisterAmountHour(hourODS.getOfficialAccountRegisterAmount());
|
|
|
|
+ result.setOfficialAccountRegisterRoiHour(hourODS.getOfficialAccountRegisterRoi());
|
|
|
|
+ result.setOfficialAccountApplyCountHour(hourODS.getOfficialAccountApplyCount());
|
|
|
|
+ result.setOfficialAccountApplyUserCountHour(hourODS.getOfficialAccountApplyUserCount());
|
|
|
|
+ result.setOfficialAccountApplyRateHour(hourODS.getOfficialAccountApplyRate());
|
|
|
|
+ result.setOfficialAccountApplyCostHour(hourODS.getOfficialAccountApplyCost());
|
|
|
|
+ result.setOfficialAccountApplyAmountHour(hourODS.getOfficialAccountApplyAmount());
|
|
|
|
+ result.setOfficialAccountApplyRoiHour(hourODS.getOfficialAccountApplyRoi());
|
|
|
|
+ result.setOfficialAccountOrderCountHour(hourODS.getOfficialAccountOrderCount());
|
|
|
|
+ result.setOfficialAccountFirstDayOrderCountHour(hourODS.getOfficialAccountFirstDayOrderCount());
|
|
|
|
+ result.setOfficialAccountOrderUserCountHour(hourODS.getOfficialAccountOrderUserCount());
|
|
|
|
+ result.setOfficialAccountOrderRateHour(hourODS.getOfficialAccountOrderRate());
|
|
|
|
+ result.setOfficialAccountOrderCostHour(hourODS.getOfficialAccountOrderCost());
|
|
|
|
+ result.setOfficialAccountOrderAmountHour(hourODS.getOfficialAccountOrderAmount());
|
|
|
|
+ result.setOfficialAccountFirstDayOrderAmountHour(hourODS.getOfficialAccountFirstDayOrderAmount());
|
|
|
|
+ result.setOfficialAccountOrderRoiHour(hourODS.getOfficialAccountOrderRoi());
|
|
|
|
+ result.setOfficialAccountConsultCountHour(hourODS.getOfficialAccountConsultCount());
|
|
|
|
+ result.setOfficialAccountReaderCountHour(hourODS.getOfficialAccountReaderCount());
|
|
|
|
+ result.setOfficialAccountCreditApplyUserCountHour(hourODS.getOfficialAccountCreditApplyUserCount());
|
|
|
|
+ result.setOfficialAccountCreditUserCountHour(hourODS.getOfficialAccountCreditUserCount());
|
|
|
|
+ result.setForwardCountHour(hourODS.getForwardCount());
|
|
|
|
+ result.setForwardUserCountHour(hourODS.getForwardUserCount());
|
|
|
|
+ result.setNoInterestCountHour(hourODS.getNoInterestCount());
|
|
|
|
+
|
|
|
|
+ // 聚合天数据
|
|
|
|
+ result.setCostDeviationRateDay(0.0);
|
|
|
|
+ result.setCostDay(0L);
|
|
|
|
+ result.setCompensationAmountDay(0L);
|
|
|
|
+ result.setViewCountDay(0L);
|
|
|
|
+ result.setValidClickCountDay(0L);
|
|
|
|
+ result.setValuableClickCountDay(0L);
|
|
|
|
+ result.setConversionsCountDay(0L);
|
|
|
|
+ result.setDeepConversionsCountDay(0L);
|
|
|
|
+ result.setOrderCountDay(0L);
|
|
|
|
+ result.setFirstDayOrderCountDay(0L);
|
|
|
|
+ result.setOrderAmountDay(0L);
|
|
|
|
+ result.setFirstDayOrderAmountDay(0L);
|
|
|
|
+ result.setSignInCountDay(0L);
|
|
|
|
+ result.setScanFollowCountDay(0L);
|
|
|
|
+ result.setWechatAppRegisterUvDay(0L);
|
|
|
|
+ result.setWechatMinigameRetentionCountDay(0L);
|
|
|
|
+ result.setWechatMinigameCheckoutCountDay(0L);
|
|
|
|
+ result.setWechatMinigameCheckoutAmountDay(0L);
|
|
|
|
+ result.setOfficialAccountFollowCountDay(0L);
|
|
|
|
+ result.setOfficialAccountRegisterUserCountDay(0L);
|
|
|
|
+ result.setOfficialAccountRegisterAmountDay(0L);
|
|
|
|
+ result.setOfficialAccountApplyCountDay(0L);
|
|
|
|
+ result.setOfficialAccountApplyUserCountDay(0L);
|
|
|
|
+ result.setOfficialAccountApplyAmountDay(0L);
|
|
|
|
+ result.setOfficialAccountOrderCountDay(0L);
|
|
|
|
+ result.setOfficialAccountFirstDayOrderCountDay(0L);
|
|
|
|
+ result.setOfficialAccountOrderUserCountDay(0L);
|
|
|
|
+ result.setOfficialAccountOrderAmountDay(0L);
|
|
|
|
+ result.setOfficialAccountFirstDayOrderAmountDay(0L);
|
|
|
|
+ result.setOfficialAccountConsultCountDay(0L);
|
|
|
|
+ result.setOfficialAccountReaderCountDay(0L);
|
|
|
|
+ result.setOfficialAccountCreditApplyUserCountDay(0L);
|
|
|
|
+ result.setOfficialAccountCreditUserCountDay(0L);
|
|
|
|
+ result.setForwardCountDay(0L);
|
|
|
|
+ result.setForwardUserCountDay(0L);
|
|
|
|
+ result.setNoInterestCountDay(0L);
|
|
|
|
+ for (AdDataOfHourODS ods : hourODSList) {
|
|
|
|
+ result.setCostDeviationRateDay(result.getCostDeviationRateDay() + ods.getCostDeviationRate());
|
|
|
|
+ result.setCostDay(result.getCostDay() + ods.getCost());
|
|
|
|
+ result.setCompensationAmountDay(result.getCompensationAmountDay() + ods.getCompensationAmount());
|
|
|
|
+ result.setViewCountDay(result.getViewCountDay() + ods.getViewCount());
|
|
|
|
+ result.setValidClickCountDay(result.getValidClickCountDay() + ods.getValidClickCount());
|
|
|
|
+ result.setValuableClickCountDay(result.getValuableClickCountDay() + ods.getValuableClickCount());
|
|
|
|
+ result.setConversionsCountDay(result.getConversionsCountDay() + ods.getConversionsCount());
|
|
|
|
+ result.setDeepConversionsCountDay(result.getDeepConversionsCountDay() + ods.getDeepConversionsCount());
|
|
|
|
+ result.setOrderCountDay(result.getOrderCountDay() + ods.getOrderCount());
|
|
|
|
+ result.setFirstDayOrderCountDay(result.getFirstDayOrderCountDay() + ods.getFirstDayOrderCount());
|
|
|
|
+ result.setOrderAmountDay(result.getOrderAmountDay() + ods.getOrderAmount());
|
|
|
|
+ result.setFirstDayOrderAmountDay(result.getFirstDayOrderAmountDay() + ods.getFirstDayOrderAmount());
|
|
|
|
+ result.setSignInCountDay(result.getSignInCountDay() + ods.getSignInCount());
|
|
|
|
+ result.setScanFollowCountDay(result.getScanFollowCountDay() + ods.getScanFollowCount());
|
|
|
|
+ result.setWechatAppRegisterUvDay(result.getWechatAppRegisterUvDay() + ods.getWechatAppRegisterUv());
|
|
|
|
+ result.setWechatMinigameRetentionCountDay(result.getWechatMinigameRetentionCountDay() + ods.getWechatMinigameRetentionCount());
|
|
|
|
+ result.setWechatMinigameCheckoutCountDay(result.getWechatMinigameCheckoutCountDay() + ods.getWechatMinigameCheckoutCount());
|
|
|
|
+ result.setWechatMinigameCheckoutAmountDay(result.getWechatMinigameCheckoutAmountDay() + ods.getWechatMinigameCheckoutAmount());
|
|
|
|
+ result.setOfficialAccountFollowCountDay(result.getOfficialAccountFollowCountDay() + ods.getOfficialAccountFollowCount());
|
|
|
|
+ result.setOfficialAccountRegisterUserCountDay(result.getOfficialAccountRegisterUserCountDay() + ods.getOfficialAccountRegisterUserCount());
|
|
|
|
+ result.setOfficialAccountRegisterAmountDay(result.getOfficialAccountRegisterAmountDay() + ods.getOfficialAccountRegisterAmount());
|
|
|
|
+ result.setOfficialAccountApplyCountDay(result.getOfficialAccountApplyCountDay() + ods.getOfficialAccountApplyCount());
|
|
|
|
+ result.setOfficialAccountApplyUserCountDay(result.getOfficialAccountApplyUserCountDay() + ods.getOfficialAccountApplyUserCount());
|
|
|
|
+ result.setOfficialAccountApplyAmountDay(result.getOfficialAccountApplyAmountDay() + ods.getOfficialAccountApplyAmount());
|
|
|
|
+ result.setOfficialAccountOrderCountDay(result.getOfficialAccountOrderCountDay() + ods.getOfficialAccountOrderCount());
|
|
|
|
+ result.setOfficialAccountFirstDayOrderCountDay(result.getOfficialAccountFirstDayOrderCountDay() + ods.getOfficialAccountFirstDayOrderCount());
|
|
|
|
+ result.setOfficialAccountOrderUserCountDay(result.getOfficialAccountOrderUserCountDay() + ods.getOfficialAccountOrderUserCount());
|
|
|
|
+ result.setOfficialAccountOrderAmountDay(result.getOfficialAccountOrderAmountDay() + ods.getOfficialAccountOrderAmount());
|
|
|
|
+ result.setOfficialAccountFirstDayOrderAmountDay(result.getOfficialAccountFirstDayOrderAmountDay() + ods.getOfficialAccountFirstDayOrderAmount());
|
|
|
|
+ result.setOfficialAccountConsultCountDay(result.getOfficialAccountConsultCountDay() + ods.getOfficialAccountConsultCount());
|
|
|
|
+ result.setOfficialAccountReaderCountDay(result.getOfficialAccountReaderCountDay() + ods.getOfficialAccountReaderCount());
|
|
|
|
+ result.setOfficialAccountCreditApplyUserCountDay(result.getOfficialAccountCreditApplyUserCountDay() + ods.getOfficialAccountCreditApplyUserCount());
|
|
|
|
+ result.setOfficialAccountCreditUserCountDay(result.getOfficialAccountCreditUserCountDay() + ods.getOfficialAccountCreditUserCount());
|
|
|
|
+ result.setForwardCountDay(result.getForwardCountDay() + ods.getForwardCount());
|
|
|
|
+ result.setForwardUserCountDay(result.getForwardUserCountDay() + ods.getForwardUserCount());
|
|
|
|
+ result.setNoInterestCountDay(result.getNoInterestCountDay() + ods.getNoInterestCount());
|
|
}
|
|
}
|
|
|
|
+ result.setThousandDisplayPriceDay(result.getViewCountDay() == 0 ? 0 : (result.getCostDay() / result.getViewCountDay() * 1000));
|
|
|
|
+ result.setCtrDay(result.getViewCountDay() == 0 ? 0.0 : result.getValidClickCountDay() / result.getViewCountDay());
|
|
|
|
+ result.setCpcDay(result.getValidClickCountDay() == 0 ? 0 : result.getCostDay() / result.getValidClickCountDay());
|
|
|
|
+ result.setValuableClickRateDay(result.getViewCountDay() == 0 ? 0.0 : result.getValuableClickCountDay() / result.getViewCountDay());
|
|
|
|
+ result.setValuableClickCostDay(result.getValuableClickCountDay() == 0 ? 0 : result.getCostDay() / result.getValuableClickCountDay());
|
|
|
|
+ result.setConversionsCostDay(result.getConversionsCountDay() == 0 ? 0 : result.getCostDay() / result.getConversionsCountDay());
|
|
|
|
+ result.setConversionsRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getConversionsCountDay() / result.getValidClickCountDay());
|
|
|
|
+ result.setDeepConversionsCostDay(result.getDeepConversionsCountDay() == 0 ? 0 : result.getCostDay() / result.getDeepConversionsCountDay());
|
|
|
|
+ result.setDeepConversionsRateDay(result.getValuableClickCountDay() == 0 ? 0.0 : result.getDeepConversionsCountDay() / result.getValuableClickCountDay());
|
|
|
|
+ result.setWebOrderCostDay(result.getOrderCountDay() == 0 ? 0 : result.getCostDay() / result.getOrderCountDay());
|
|
|
|
+ result.setOrderRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getOrderCountDay() / result.getValidClickCountDay());
|
|
|
|
+ result.setOrderUnitPriceDay(result.getOrderCountDay() == 0 ? 0 : result.getOrderAmountDay() / result.getOrderCountDay());
|
|
|
|
+ result.setOrderRoiDay(result.getCostDay() == 0 ? 0.0 : result.getOrderAmountDay() / result.getCostDay());
|
|
|
|
+ result.setWechatMinigameRegisterCostDay(result.getWechatAppRegisterUvDay() == 0 ? 0 : result.getCostDay() / result.getWechatAppRegisterUvDay());
|
|
|
|
+ result.setWechatMinigameRegisterRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getWechatAppRegisterUvDay() / result.getValidClickCountDay());
|
|
|
|
+ result.setWechatMinigameArpuDay(result.getWechatAppRegisterUvDay() == 0 ? 0.0 : result.getOrderAmountDay() / result.getWechatAppRegisterUvDay());
|
|
|
|
+ result.setOfficialAccountFollowRateDay(result.getValidClickCountDay() == 0 ? 0.0 : result.getOfficialAccountFollowCountDay() / result.getValidClickCountDay());
|
|
|
|
+ result.setOfficialAccountRegisterRateDay(result.getOfficialAccountFollowCountDay() == 0 ? 0.0 : result.getOfficialAccountRegisterUserCountDay() / result.getOfficialAccountFollowCountDay());
|
|
|
|
+ result.setOfficialAccountRegisterCostDay(result.getOfficialAccountRegisterUserCountDay() == 0 ? 0 : result.getCostDay() / result.getOfficialAccountRegisterUserCountDay());
|
|
|
|
+ result.setOfficialAccountRegisterRoiDay(result.getCostDay() == 0 ? 0 : result.getOfficialAccountRegisterAmountDay() / result.getCostDay());
|
|
|
|
+ result.setOfficialAccountApplyRateDay(result.getOfficialAccountFollowCountDay() == 0 ? 0.0 : result.getOfficialAccountApplyUserCountDay() / result.getOfficialAccountFollowCountDay());
|
|
|
|
+ result.setOfficialAccountApplyCostDay(result.getOfficialAccountApplyUserCountDay() == 0 ? 0 : result.getCostDay() / result.getOfficialAccountApplyUserCountDay());
|
|
|
|
+ result.setOfficialAccountApplyRoiDay(result.getCostDay() == 0 ? 0 : result.getOfficialAccountApplyAmountDay() / result.getCostDay());
|
|
|
|
+ result.setOfficialAccountOrderRateDay(result.getOfficialAccountFollowCountDay() == 0 ? 0.0 : result.getOfficialAccountOrderUserCountDay() / result.getOfficialAccountFollowCountDay());
|
|
|
|
+ result.setOfficialAccountOrderCostDay(result.getOfficialAccountOrderCountDay() == 0 ? 0 : result.getCostDay() / result.getOfficialAccountOrderCountDay());
|
|
|
|
+ result.setOfficialAccountOrderRoiDay(result.getCostDay() == 0 ? 0 : result.getOfficialAccountOrderAmountDay() / result.getCostDay());
|
|
|
|
+
|
|
|
|
+ // 聚合总数据
|
|
if (yesterdayDWD == null) {
|
|
if (yesterdayDWD == null) {
|
|
result.setCostDeviationRateTotal(result.getCostDeviationRateDay());
|
|
result.setCostDeviationRateTotal(result.getCostDeviationRateDay());
|
|
result.setCostTotal(result.getCostDay());
|
|
result.setCostTotal(result.getCostDay());
|