|
@@ -17,10 +17,11 @@
|
|
|
|
|
|
|
|
<select id="getAppBanList" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getAppBanList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
SELECT t1.app_id AS 'appId', t2.name AS 'appName', t1.num AS 'num'
|
|
SELECT t1.app_id AS 'appId', t2.name AS 'appName', t1.num AS 'num'
|
|
|
- FROM (SELECT app_id, COUNT(1) AS 'num'
|
|
|
|
|
|
|
+ FROM (SELECT app_id as 'app_id', COUNT(1) AS 'num'
|
|
|
FROM thirtpart.ly_ad_message_log
|
|
FROM thirtpart.ly_ad_message_log
|
|
|
- WHERE `output` LIKE '%{"errCode":1007}%'
|
|
|
|
|
- AND created_at >= #{createAt}) t1
|
|
|
|
|
|
|
+ WHERE created_at >= #{createAt}
|
|
|
|
|
+ AND `output` LIKE '%{"errCode":1007}%'
|
|
|
|
|
+ group by app_id) t1
|
|
|
LEFT JOIN thirtpart.ly_applet t2
|
|
LEFT JOIN thirtpart.ly_applet t2
|
|
|
ON t1.app_id = t2.app_id
|
|
ON t1.app_id = t2.app_id
|
|
|
</select>
|
|
</select>
|