zoujiajian 9 meses atrás
pai
commit
37312b0f15

+ 3 - 3
netflix-dao/src/main/resources/mapper/GroupRelationMapper.xml

@@ -47,8 +47,8 @@
 
     <update id="updateUserVipSkusExpiryTime">
         update groups_relation set expiry_time = #{expiryTime} and update_time = now()
-        where id in (
-        select id from groups_relation gr inner join groups_trips gt on gt.id = gr.groups_id
+        where id in (select * from(
+        select gr.id from groups_relation gr inner join groups_trips gt on gt.id = gr.groups_id
         where gt.sku_id in
         <foreach collection="vipSkuIds" item="item" open="(" separator="," close=")">
             #{item}
@@ -57,7 +57,7 @@
         <foreach collection="userIds" item="item" open="(" separator="," close=")">
             #{item}
         </foreach>
-        and is_vip)
+        and is_vip)s)
     </update>
 
     <select id="getAccountIdsByUserIdOrNickNameOrSubmitAccount" resultType="java.lang.Long">