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}