liyg 2 лет назад
Родитель
Сommit
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}