Просмотр исходного кода

fix商品库IAA不上传问题

zhaotx 9 месяцев назад
Родитель
Сommit
1a1e2e40e5

+ 8 - 9
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/data/mapper/xml/BytedanceProductUpdateMapper.xml

@@ -23,18 +23,17 @@
         where platform_id = #{platformId}
         where platform_id = #{platformId}
     </update>
     </update>
 
 
-
     <select id="getPlatformList" resultType="cn.com.ctop.job.bytedance.data.entity.AigcProductPlatform">
     <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,
         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
         '天津星链视界信息技术有限公司' as copyright_owner
         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_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
         where t1.`_status`=0 and platform_type=1 and t1.mini_instance_id is not null
         <if test="businessMethod != null">
         <if test="businessMethod != null">
             <choose>
             <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>
             </choose>
         </if>
         </if>
         <if test="platformId != null and platformId != ''">
         <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
         left join deepthink.bytedance_auth_list t3 on t2.admin_advertiser_id=t3.admin_advertiser_id
         where t1.`_status`=0 and platform_type=1
         where t1.`_status`=0 and platform_type=1
         <choose>
         <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>
         </choose>
     </select>
     </select>
     <select id="getIAAPlatformList" resultType="cn.com.ctop.job.bytedance.data.entity.AigcProductPlatform">
     <select id="getIAAPlatformList" resultType="cn.com.ctop.job.bytedance.data.entity.AigcProductPlatform">
@@ -107,8 +106,8 @@
         from deepthink.bytedance_product_group_types
         from deepthink.bytedance_product_group_types
         where 1=1
         where 1=1
         <choose>
         <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>
         </choose>
     </select>
     </select>
     <select id="getIAAProductTypeEnums" resultType="com.alibaba.fastjson.JSONObject">
     <select id="getIAAProductTypeEnums" resultType="com.alibaba.fastjson.JSONObject">