anderx недель назад: 2
Родитель
Сommit
e2305fdc49
1 измененных файлов с 9 добавлено и 6 удалено
  1. 9 6
      src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

+ 9 - 6
src/main/java/com/goafanti/common/mapper/PublicReleaseMapper.xml

@@ -970,8 +970,9 @@
             and b.type= #{publicType}
         </if>
           <if test="assistType!=null">
-            <foreach  collection="assistType" item="type" >
-                and find_in_set(#{type},pad.type) &gt; 0
+            and
+            <foreach  collection="assistType" item="type" separator=" or ">
+                 find_in_set(#{type},pad.type) &gt; 0
             </foreach>
         </if>
         <if test="aid != null">
@@ -1324,8 +1325,9 @@
             and a.type &gt; 4
         </if>
         <if test="contentType!=null">
-            <foreach item="item" collection="contentType" >
-                and find_in_set(#{item},c.content_type) &gt;  0
+        and
+            <foreach item="item" collection="contentType" separator=" or ">
+                 find_in_set(#{item},c.content_type) &gt;  0
             </foreach>
         </if>
         <if test="aid !=null">
@@ -1338,8 +1340,9 @@
             and b.uid = #{uid}
         </if>
         <if test="assistType !=null">
-            <foreach item="item" collection="assistType" >
-                and find_in_set(#{item},c.type) &gt;  0
+        and
+            <foreach item="item" collection="assistType" separator=" or ">
+                 find_in_set(#{item},c.type) &gt;  0
             </foreach>
         </if>
         <if test="startTime !=null and endTime !=null">