|
@@ -24,14 +24,14 @@
|
|
|
FROM deepthink.bytedance_product_main_advertiser t1
|
|
FROM deepthink.bytedance_product_main_advertiser t1
|
|
|
left join deepthink.bytedance_advertiser_list t2 on t1.advertiser_id=t2.advertiser_id
|
|
left join deepthink.bytedance_advertiser_list t2 on t1.advertiser_id=t2.advertiser_id
|
|
|
left join deepthink.bytedance_auth_list t3 on t2.admin_advertiser_id=t3.admin_advertiser_id
|
|
left join deepthink.bytedance_auth_list t3 on t2.admin_advertiser_id=t3.admin_advertiser_id
|
|
|
- where t1.`type`=2 and t1.`_status`=0
|
|
|
|
|
|
|
+ where t1.`type`=2 and t1.`_status`=0 and platform_type=1
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getIAAPlatformList" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getIAAPlatformList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select t1.*, t3.access_token
|
|
select t1.*, t3.access_token
|
|
|
FROM deepthink.bytedance_product_main_advertiser t1
|
|
FROM deepthink.bytedance_product_main_advertiser t1
|
|
|
left join deepthink.bytedance_advertiser_list t2 on t1.advertiser_id=t2.advertiser_id
|
|
left join deepthink.bytedance_advertiser_list t2 on t1.advertiser_id=t2.advertiser_id
|
|
|
left join deepthink.bytedance_auth_list t3 on t2.admin_advertiser_id=t3.admin_advertiser_id
|
|
left join deepthink.bytedance_auth_list t3 on t2.admin_advertiser_id=t3.admin_advertiser_id
|
|
|
- where t1.`type`=1 and t1.`_status`=0
|
|
|
|
|
|
|
+ where t1.`type`=1 and t1.`_status`=0 and platform_type=1
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getIAPVideoList" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getIAPVideoList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select third.album_id, third.platform_type, detail.platform_config, video.id as video_id, detail.id as video_detail_id, video.name as name, video.cover_img as img,ifnull(category.name, '其他') as 'theme', video.play_platform,
|
|
select third.album_id, third.platform_type, detail.platform_config, video.id as video_id, detail.id as video_detail_id, video.name as name, video.cover_img as img,ifnull(category.name, '其他') as 'theme', video.play_platform,
|
|
@@ -47,7 +47,7 @@
|
|
|
LEFT JOIN (select * from thirtpart.ly_videos) video ON third.video_id = video.id
|
|
LEFT JOIN (select * from thirtpart.ly_videos) video ON third.video_id = video.id
|
|
|
LEFT JOIN thirtpart.ly_video_category category ON video.category_id = category.id
|
|
LEFT JOIN thirtpart.ly_video_category category ON video.category_id = category.id
|
|
|
LEFT JOIN (select video_id, min(sort) as sort, max(pay_amount/100.0) as maxpay, min(pay_amount/100.0) as minpay from thirtpart.ly_video_details where is_pay=1 group by video_id) payinfo ON video.id = payinfo.video_id
|
|
LEFT JOIN (select video_id, min(sort) as sort, max(pay_amount/100.0) as maxpay, min(pay_amount/100.0) as minpay from thirtpart.ly_video_details where is_pay=1 group by video_id) payinfo ON video.id = payinfo.video_id
|
|
|
- where video.is_free = 1
|
|
|
|
|
|
|
+ where video.is_free = 1 or (payinfo.sort is not null and maxpay>0)
|
|
|
</select>
|
|
</select>
|
|
|
<select id="getIAAVideoList" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getIAAVideoList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select third.album_id, third.platform_type, detail.platform_config, video.id as video_id, detail.id as video_detail_id, video.name as name, video.cover_img as img,ifnull(category.name, '其他') as 'theme', video.play_platform,
|
|
select third.album_id, third.platform_type, detail.platform_config, video.id as video_id, detail.id as video_detail_id, video.name as name, video.cover_img as img,ifnull(category.name, '其他') as 'theme', video.play_platform,
|