zoujiajian 2 лет назад
Родитель
Сommit
5cd4a637e9

+ 2 - 2
netflix-dao/src/main/resources/mapper/CorpCustomerAcquisitionLinkMapper.xml

@@ -6,9 +6,9 @@
     <select id="selectActiveCodeByFollowIndx" resultType="com.cyksj.model.entity.CorpCustomerAcquisitionLink">
         select *
         from corp_customer_acquisition_link
-        where user_list != '[]'
+        where user_list != '[]' and
         <foreach collection="list" item="item" separator="OR">
-            JSON_CONTAINS(user_list, '[#{item}]')
+            JSON_CONTAINS(user_list, '${item}')
         </foreach>
     </select>
 </mapper>

+ 2 - 2
netflix-dao/src/main/resources/mapper/CorpFollowActiveCodeMapper.xml

@@ -7,9 +7,9 @@
         select *
         from corp_follow_active_code
         where deleted is true
-        and follow_str != ''
+        and follow_str != '' and
         <foreach collection="list" item="item" separator="OR">
-            JSON_CONTAINS(follow_str, '[#{item}]')
+            JSON_CONTAINS(follow_str, '${item}')
         </foreach>
     </select>
 </mapper>