|
@@ -1089,7 +1089,7 @@ public class PromotionDayServiceImpl implements IAdsPromotionDayService {
|
|
MAX(classify) as classify,
|
|
MAX(classify) as classify,
|
|
SUM(today_cost) as today_cost,
|
|
SUM(today_cost) as today_cost,
|
|
SUM(show_count) as show_count,
|
|
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,
|
|
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(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,
|
|
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
|
|
SELECT
|
|
IFNULL(SUM(today_cost), 0) as today_cost,
|
|
IFNULL(SUM(today_cost), 0) as today_cost,
|
|
IFNULL(SUM(show_count), 0) as show_count,
|
|
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,
|
|
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(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,
|
|
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,
|
|
MAX(classify) as classify,
|
|
SUM(today_cost) as today_cost,
|
|
SUM(today_cost) as today_cost,
|
|
SUM(show_count) as show_count,
|
|
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,
|
|
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(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,
|
|
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
|
|
SELECT
|
|
IFNULL(SUM(today_cost), 0) as today_cost,
|
|
IFNULL(SUM(today_cost), 0) as today_cost,
|
|
IFNULL(SUM(show_count), 0) as show_count,
|
|
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,
|
|
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(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,
|
|
round(if(SUM(show_count) > 0, SUM(click_count) / SUM(show_count), 0), 4) as ctr,
|