|
|
@@ -23,18 +23,17 @@
|
|
|
where platform_id = #{platformId}
|
|
|
</update>
|
|
|
|
|
|
-
|
|
|
<select id="getPlatformList" resultType="cn.com.ctop.job.bytedance.data.entity.AigcProductPlatform">
|
|
|
select t1.platform_id, t1.advertiser_id, t1.type, t1.platform_type, t1.platform_name, t1.mini_instance_id, t1.update_time, t1.create_time, t1.mi_appid, t1.membership_types, t1.max_charge, t1.min_charge, t1.recommended_charge, t1.single_price, t1._status, t1.social_credit_code, t1.movie_auth_status, t1.is_bytedance, t1.is_wechat, t1.is_dys, t1.source, ifnull(t1.mini_app_advertiser_id,t1.advertiser_id) as mini_app_advertiser_id, t3.access_token,
|
|
|
'天津星链视界信息技术有限公司' as copyright_owner
|
|
|
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_auth_list t3 on t2.admin_advertiser_id=t3.admin_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
|
|
|
where t1.`_status`=0 and platform_type=1 and t1.mini_instance_id is not null
|
|
|
<if test="businessMethod != null">
|
|
|
<choose>
|
|
|
- <when test="businessMethod = 'IAP'">and t1.`type`=2 </when>
|
|
|
- <when test="businessMethod = 'IAA'">and t1.`type`=1 </when>
|
|
|
+ <when test="businessMethod == 'IAP'">and t1.`type`=2 </when>
|
|
|
+ <when test="businessMethod == 'IAA'">and t1.`type`=1 </when>
|
|
|
</choose>
|
|
|
</if>
|
|
|
<if test="platformId != null and platformId != ''">
|
|
|
@@ -49,8 +48,8 @@
|
|
|
left join deepthink.bytedance_auth_list t3 on t2.admin_advertiser_id=t3.admin_advertiser_id
|
|
|
where t1.`_status`=0 and platform_type=1
|
|
|
<choose>
|
|
|
- <when test="businessMethod != null and businessMethod = 'IAP'">and t1.`type`=2 </when>
|
|
|
- <when test="businessMethod != null and businessMethod = 'IAA'">and t1.`type`=1 </when>
|
|
|
+ <when test="businessMethod != null and businessMethod == 'IAP'">and t1.`type`=2 </when>
|
|
|
+ <when test="businessMethod != null and businessMethod == 'IAA'">and t1.`type`=1 </when>
|
|
|
</choose>
|
|
|
</select>
|
|
|
<select id="getIAAPlatformList" resultType="cn.com.ctop.job.bytedance.data.entity.AigcProductPlatform">
|
|
|
@@ -107,8 +106,8 @@
|
|
|
from deepthink.bytedance_product_group_types
|
|
|
where 1=1
|
|
|
<choose>
|
|
|
- <when test="businessMethod != null and businessMethod = 'IAP'">and `type`=2 </when>
|
|
|
- <when test="businessMethod != null and businessMethod = 'IAA'">and`type`=1 </when>
|
|
|
+ <when test="businessMethod != null and businessMethod == 'IAP'">and `type`=2 </when>
|
|
|
+ <when test="businessMethod != null and businessMethod == 'IAA'">and`type`=1 </when>
|
|
|
</choose>
|
|
|
</select>
|
|
|
<select id="getIAAProductTypeEnums" resultType="com.alibaba.fastjson.JSONObject">
|