Explorar o código

非公出协单开发

anderx hai 2 semanas
pai
achega
e2305fdc49

+ 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">