|
|
@@ -204,7 +204,8 @@
|
|
|
WHERE stat_date = ${date}
|
|
|
AND ma_appid IN (SELECT app_id
|
|
|
FROM deepthink.mini_app_info
|
|
|
- WHERE business_type IN (1, 3, 8) AND business_method = 'IAA')
|
|
|
+ WHERE business_type IN (1, 3, 8)
|
|
|
+ AND business_method = 'IAA')
|
|
|
GROUP BY product_id
|
|
|
UNION ALL
|
|
|
SELECT product_id,
|
|
|
@@ -216,7 +217,8 @@
|
|
|
WHERE stat_date = ${date}
|
|
|
AND ma_appid IN (SELECT app_id
|
|
|
FROM deepthink.mini_app_info
|
|
|
- WHERE business_type IN (1, 3, 8) AND business_method = 'IAP')
|
|
|
+ WHERE business_type IN (1, 3, 8)
|
|
|
+ AND business_method = 'IAP')
|
|
|
GROUP BY product_id) subt2
|
|
|
GROUP BY product_id) tb2 ON tb1.product_id = tb2.product_id
|
|
|
LEFT JOIN
|
|
|
@@ -243,7 +245,7 @@
|
|
|
WHERE 1 = 1
|
|
|
AND tb1.product_id != '-9999'
|
|
|
GROUP BY tb4.standard_movie_name
|
|
|
- ORDER BY SUM (end_amount) DESC
|
|
|
+ ORDER BY SUM(end_amount) DESC
|
|
|
</select>
|
|
|
|
|
|
|