|
@@ -4,24 +4,46 @@
|
|
<mapper namespace="com.xxl.job.admin.dao.AccountDao">
|
|
<mapper namespace="com.xxl.job.admin.dao.AccountDao">
|
|
|
|
|
|
<select id="getAccountList" resultType="java.lang.String">
|
|
<select id="getAccountList" resultType="java.lang.String">
|
|
- SELECT account_id from `jeecg-boot`.ctop_user_allocation
|
|
|
|
- where media_id = #{mediaId}
|
|
|
|
- and account_status = 0
|
|
|
|
- </select>
|
|
|
|
|
|
+ SELECT account_id
|
|
|
|
+ from `jeecg-boot`.ctop_user_allocation
|
|
|
|
+ where media_id = #{mediaId}
|
|
|
|
+ and account_status = 0
|
|
|
|
+ </select>
|
|
|
|
|
|
- <select id="getLiveAccountList" resultType="java.lang.String">
|
|
|
|
- SELECT account_id from `ruixuan`.kuaishou_account
|
|
|
|
- where account_status = 1
|
|
|
|
- </select>
|
|
|
|
- <select id="getLiveDuanJuAccountList" resultType="java.lang.String">
|
|
|
|
- SELECT advertiser_id
|
|
|
|
- FROM media_api.compass_bind_advertisers
|
|
|
|
- WHERE advertiser_id != 39526067
|
|
|
|
|
|
+ <select id="getLiveAccountList" resultType="java.lang.String">
|
|
|
|
+ SELECT account_id
|
|
|
|
+ from `ruixuan`.kuaishou_account
|
|
|
|
+ where account_status = 1
|
|
|
|
+ </select>
|
|
|
|
+ <select id="getLiveDuanJuAccountList" resultType="java.lang.String">
|
|
|
|
+ SELECT advertiser_id
|
|
|
|
+ FROM media_api.compass_bind_advertisers
|
|
|
|
+ WHERE advertiser_id != 39526067
|
|
AND advertiser_name NOT LIKE '%暂停%'
|
|
AND advertiser_name NOT LIKE '%暂停%'
|
|
- </select>
|
|
|
|
|
|
+ </select>
|
|
|
|
|
|
- <select id="getKWaixiaodianAccessList" resultType="java.lang.String">
|
|
|
|
- SELECT id
|
|
|
|
- FROM ruixuan.kwaixiaodian_access_token
|
|
|
|
- </select>
|
|
|
|
|
|
+ <select id="getKWaixiaodianAccessList" resultType="java.lang.String">
|
|
|
|
+ SELECT id
|
|
|
|
+ FROM ruixuan.kwaixiaodian_access_token
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+ <select id="getRuixuanAllAccessList" resultType="java.lang.String">
|
|
|
|
+ select CONCAT('ruixuan_', id)
|
|
|
|
+ from ruixuan.kuaishou_access_token
|
|
|
|
+ UNION
|
|
|
|
+ select CONCAT('miaogousi_', id)
|
|
|
|
+ from miaogousi.kuaishou_access_token
|
|
|
|
+ UNION
|
|
|
|
+ select CONCAT('rocket_', id)
|
|
|
|
+ from rocket.kuaishou_access_token
|
|
|
|
+ UNION
|
|
|
|
+ select CONCAT('yufu_', id)
|
|
|
|
+ from yufu.kuaishou_access_token
|
|
|
|
+ UNION
|
|
|
|
+ select CONCAT('yuxiu_', id)
|
|
|
|
+ from yuxiu.kuaishou_access_token
|
|
|
|
+ UNION
|
|
|
|
+ select CONCAT('zhishui_', id)
|
|
|
|
+ from zhishui.kuaishou_access_token
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|