liyg пре 2 година
родитељ
комит
c750e58e53
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

+ 1 - 1
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -265,7 +265,7 @@
             <if test="index!=null and index!=''">
                 AND REGEXP_LIKE("label", #{index})
             </if>
-            <if test="id!=null and !(index!=null and index!='')">
+            <if test="id!=null and id.size>0">
                 AND "id" in
                 <foreach collection="id" item="item"  open="(" close=")" separator="," >
                     #{item}