|
@@ -120,7 +120,10 @@
|
|
|
IFNULL(ROUND(charge/ event_next_day_stay,2),0) as 'value',
|
|
|
</if>
|
|
|
</if>
|
|
|
- IFNULL(ad_scene,'全部') as 'type'
|
|
|
+ CASE
|
|
|
+ WHEN ad_scene is null then '全部'
|
|
|
+ WHEN ad_scene = '' THEN '全部'
|
|
|
+ ELSE ad_scene END as 'type'
|
|
|
FROM ctop_kuaishou_report_daily_account
|
|
|
where stat_date >= DATE_FORMAT(date_sub(now(), interval 8 day), '%Y-%m-%d')
|
|
|
AND stat_date <= DATE_FORMAT(date_sub(now(), interval 2 day), '%Y-%m-%d')
|
|
@@ -149,7 +152,10 @@
|
|
|
IFNULL(ROUND(SUM(charge)/SUM(event_next_day_stay),2),0) as 'value',
|
|
|
</if>
|
|
|
</if>
|
|
|
- IFNULL(ad_scene,'全部') as 'type'
|
|
|
+ CASE
|
|
|
+ WHEN ad_scene is null then '全部'
|
|
|
+ WHEN ad_scene = '' THEN '全部'
|
|
|
+ ELSE ad_scene END as 'type'
|
|
|
FROM ctop_kuaishou_report_daily_account
|
|
|
where stat_date >= DATE_FORMAT(date_sub(now(), interval 8 day), '%Y-%m-%d')
|
|
|
AND stat_date <= DATE_FORMAT(date_sub(now(), interval 2 day), '%Y-%m-%d')
|