Bläddra i källkod

:feat:头条广告每日数据,每日数据总计,广告监控数据增加自动
7日付费100+用户数
7日付费100+用户付费成本
7日付费200+用户数
7日付费200+用户付费成本
至今付费200+用户数
至今付费200+用户付费成本

zhangxianyu 1 år sedan
förälder
incheckning
d196b5a3ee

+ 31 - 0
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/pojo/vo/PromotionDayTotalVO.java

@@ -945,4 +945,35 @@ public class PromotionDayTotalVO {
     @ApiModelProperty("七日付费金额")
     private BigDecimal day7Amount;
 
+    /**
+     * 7日付费100+用户数
+     */
+    @ApiModelProperty(value = "7日付费100+用户数")
+    private Long day7OneHundredAmountNum;
+    /**
+     * 7日付费100+用户付费成本
+     */
+    @ApiModelProperty(value = "7日付费100+用户付费成本")
+    private BigDecimal day7OneHundredAmountNumCost;
+    /**
+     * 7日付费200+用户数
+     */
+    @ApiModelProperty(value = "7日付费200+用户数")
+    private Long day7TwoHundredAmountNum;
+    /**
+     * 7日付费200+用户付费成本
+     */
+    @ApiModelProperty(value = "7日付费200+用户付费成本")
+    private BigDecimal day7TwoHundredAmountNumCost;
+    /**
+     * 至今付费200+用户数
+     */
+    @ApiModelProperty(value = "至今付费200+用户数")
+    private Long newUserTwoHundredUserNum;
+    /**
+     * 至今付费200+用户付费成本
+     */
+    @ApiModelProperty(value = "至今付费200+用户付费成本")
+    private BigDecimal newUserTwoHundredUserNumCost;
+
 }

+ 33 - 1
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/pojo/vo/PromotionDayVO.java

@@ -1120,5 +1120,37 @@ public class PromotionDayVO {
      */
     @ApiModelProperty("七日付费金额")
     private BigDecimal day7Amount;
-    
+
+    /**
+     * 7日付费100+用户数
+     */
+    @ApiModelProperty(value = "7日付费100+用户数")
+    private Long day7OneHundredAmountNum;
+    /**
+     * 7日付费100+用户付费成本
+     */
+    @ApiModelProperty(value = "7日付费100+用户付费成本")
+    private BigDecimal day7OneHundredAmountNumCost;
+    /**
+     * 7日付费200+用户数
+     */
+    @ApiModelProperty(value = "7日付费200+用户数")
+    private Long day7TwoHundredAmountNum;
+    /**
+     * 7日付费200+用户付费成本
+     */
+    @ApiModelProperty(value = "7日付费200+用户付费成本")
+    private BigDecimal day7TwoHundredAmountNumCost;
+    /**
+     * 至今付费200+用户数
+     */
+    @ApiModelProperty(value = "至今付费200+用户数")
+    private Long newUserTwoHundredUserNum;
+    /**
+     * 至今付费200+用户付费成本
+     */
+    @ApiModelProperty(value = "至今付费200+用户付费成本")
+    private BigDecimal newUserTwoHundredUserNumCost;
+
+
 }

+ 21 - 3
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/PromotionDayServiceImpl.java

@@ -1070,7 +1070,13 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                     day7_amount_per_count,
                     day7_arpu,
                     day7_amount_num,
-                    day7_amount
+                    day7_amount,
+                    day7_one_hundred_amount_num,
+                    day7_one_hundred_amount_num_cost,
+                    day7_two_hundred_amount_num,
+                    day7_two_hundred_amount_num_cost,
+                    new_user_two_hundred_user_num,
+                    new_user_two_hundred_user_num_cost
                 FROM
                 	game_ads.ads_promotion_day
                 """;
@@ -1187,7 +1193,13 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                 	    ROUND(if(SUM(day7_amount_num) > 0, SUM(day7_amount_count) / SUM(day7_amount_num), 0), 2) as day7_amount_per_count,
                 	    ROUND(if(SUM(day7_amount_num) > 0, SUM(day7_amount) / SUM(day7_amount_num), 0), 2) as day7_arpu,
                 	    SUM(day7_amount) as day7_amount,
-                	    SUM(day7_amount_num) as day7_amount_num
+                	    SUM(day7_amount_num) as day7_amount_num,
+                	    SUM(day7_one_hundred_amount_num) as day7_one_hundred_amount_num ,
+                     	SUM(day7_one_hundred_amount_num_cost) as day7_one_hundred_amount_num_cost,
+                     	SUM(day7_two_hundred_amount_num) as day7_two_hundred_amount_num,
+                     	SUM(day7_two_hundred_amount_num_cost) as day7_two_hundred_amount_num_cost,
+                     	SUM(new_user_two_hundred_user_num) as new_user_two_hundred_user_num,
+                     	SUM(new_user_two_hundred_user_num_cost) as new_user_two_hundred_user_num_cost
                 	FROM
                 		game_ads.ads_promotion_day
                 """ + criA +
@@ -1324,7 +1336,13 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                     ROUND(if(SUM(day7_amount_num) > 0, SUM(day7_amount_count) / SUM(day7_amount_num), 0), 2) as day7_amount_per_count,
                     ROUND(if(SUM(day7_amount_num) > 0, SUM(day7_amount) / SUM(day7_amount_num), 0), 2) as day7_arpu,
                     SUM(day7_amount) as day7_amount,
-                    SUM(day7_amount_num) as day7_amount_num
+                    SUM(day7_amount_num) as day7_amount_num,
+                    SUM(day7_one_hundred_amount_num) as day7_one_hundred_amount_num,
+                    SUM(day7_one_hundred_amount_num_cost) as day7_one_hundred_amount_num_cost,
+                    SUM(day7_two_hundred_amount_num) as day7_two_hundred_amount_num,
+                    SUM(day7_two_hundred_amount_num_cost) as day7_two_hundred_amount_num_cost,
+                    SUM(new_user_two_hundred_user_num) as new_user_two_hundred_user_num,
+                    SUM(new_user_two_hundred_user_num_cost) as new_user_two_hundred_user_num_cost
                 FROM
                 	game_ads.ads_promotion_day
                 """;