change 3 سال پیش
والد
کامیت
9590122b0a
1فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 6 1
      zhongzheng-system/src/main/resources/mapper/modules/exam/ExamBeforeMapper.xml

+ 6 - 1
zhongzheng-system/src/main/resources/mapper/modules/exam/ExamBeforeMapper.xml

@@ -112,6 +112,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             exam_before eb
                 LEFT JOIN exam_before_url ebu on eb.before_url=ebu.before_url_id
         where 1=1
-          and eb.before_id = #{beforeId}
+        <if test="status != null and status.size()!=0 ">
+            AND eb.status in
+            <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
+                #{item}
+            </foreach>
+        </if>
     </select>
 </mapper>