Sfoglia il codice sorgente

千次曝光展示的问题

wcc 1 anno fa
parent
commit
782e66cd8c

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

@@ -1089,7 +1089,7 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                 		MAX(classify) as classify,
                 		SUM(today_cost) as today_cost,
                 		SUM(show_count) as show_count,
-                		round(if(SUM(show_count) > 0, SUM(today_cost) / SUM(show_count), 0), 2) as thousand_display_price,
+                		round(if(SUM(show_count) > 0, SUM(today_cost) * 1000 / SUM(show_count), 0), 2) as thousand_display_price,
                 		SUM(click_count) as click_count,
                 		round(if(SUM(click_count) > 0, SUM(today_cost) / SUM(click_count), 0), 2) as avg_click_cost,
                 		round(if(SUM(show_count) > 0, SUM(click_count) / SUM(show_count), 0), 4) as ctr,
@@ -1216,7 +1216,7 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                 SELECT
                     IFNULL(SUM(today_cost), 0) as today_cost,
                 	IFNULL(SUM(show_count), 0) as show_count,
-                	round(if(SUM(show_count) > 0, SUM(today_cost) / SUM(show_count), 0), 2) as thousand_display_price,
+                	round(if(SUM(show_count) > 0, SUM(today_cost) * 1000 / SUM(show_count), 0), 2) as thousand_display_price,
                 	IFNULL(SUM(click_count), 0) as click_count,
                 	round(if(SUM(click_count) > 0, SUM(today_cost) / SUM(click_count), 0), 2) as avg_click_cost,
                 	round(if(SUM(show_count) > 0, SUM(click_count) / SUM(show_count), 0), 4) as ctr,
@@ -1487,7 +1487,7 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                 		MAX(classify) as classify,
                 		SUM(today_cost) as today_cost,
                 		SUM(show_count) as show_count,
-                		round(if(SUM(show_count) > 0, SUM(today_cost) / SUM(show_count), 0), 2) as thousand_display_price,
+                		round(if(SUM(show_count) > 0, SUM(today_cost) * 1000 / SUM(show_count), 0), 2) as thousand_display_price,
                 		SUM(click_count) as click_count,
                 		round(if(SUM(click_count) > 0, SUM(today_cost) / SUM(click_count), 0), 2) as avg_click_cost,
                 		round(if(SUM(show_count) > 0, SUM(click_count) / SUM(show_count), 0), 4) as ctr,
@@ -1614,7 +1614,7 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
                 SELECT
                     IFNULL(SUM(today_cost), 0) as today_cost,
                 	IFNULL(SUM(show_count), 0) as show_count,
-                	round(if(SUM(show_count) > 0, SUM(today_cost) / SUM(show_count), 0), 2) as thousand_display_price,
+                	round(if(SUM(show_count) > 0, SUM(today_cost) * 1000 / SUM(show_count), 0), 2) as thousand_display_price,
                 	IFNULL(SUM(click_count), 0) as click_count,
                 	round(if(SUM(click_count) > 0, SUM(today_cost) / SUM(click_count), 0), 2) as avg_click_cost,
                 	round(if(SUM(show_count) > 0, SUM(click_count) / SUM(show_count), 0), 4) as ctr,