|
|
@@ -27,15 +27,13 @@
|
|
|
FROM nuojing_data.media_auth_account where media_type = 1
|
|
|
</select>
|
|
|
<select id="getKuaiShouAccountList" resultType="java.lang.String">
|
|
|
- select concat(t2.advertiser_id, '_', t1.access_token) AS 'param'
|
|
|
- from deepthink.kuaishou_auth_list t1
|
|
|
- left join deepthink.kuaishou_advertiser_list t2
|
|
|
- on t1.admin_advertiser_id = t2.admin_advertiser_id
|
|
|
- left join deepthink.advertiser_bind_info t3
|
|
|
- on t2.advertiser_id = t3.advertiser_id
|
|
|
- where t1.type = 1
|
|
|
- and t3.advertiser_status = 1
|
|
|
- group by t2.advertiser_id
|
|
|
+ select concat(t1.advertiser_id, '_', t3.access_token)
|
|
|
+ from nuojing_data.media_advertiser_relation t1
|
|
|
+ left join nuojing_data.media_advertiser_account t2 on t1.advertiser_id = t2.advertiser_id
|
|
|
+ left join nuojing_data.media_auth_account t3 on t2.admin_advertiser_id = t3.admin_advertiser_id
|
|
|
+ where t1.media_type = 2
|
|
|
+ and t1.delivery_status = 1
|
|
|
+ group by t1.advertiser_id
|
|
|
</select>
|
|
|
<select id="getAdqAdminAdcertiserList" resultType="java.lang.String">
|
|
|
SELECT concat(admin_advertiser_id, '_', access_token)
|
|
|
@@ -44,8 +42,7 @@
|
|
|
|
|
|
<select id="getKuaishouAdminadvertiserIds" resultType="java.lang.String">
|
|
|
SELECT concat(admin_advertiser_id, '_', access_token)
|
|
|
- FROM deepthink.kuaishou_auth_list
|
|
|
- WHERE `type` = 1
|
|
|
+ FROM nuojing_data.media_auth_account where media_type = 2
|
|
|
</select>
|
|
|
|
|
|
|