浏览代码

学习计划

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>