wangliang 4 年之前
父节点
当前提交
607b14d4ae
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

+ 8 - 1
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -128,7 +128,14 @@
                 and s.room_code = #{roomCode}
             </if>
             <if test="status != null and status != ''">
-                and t.status = #{status}
+                <choose>
+                    <when test="status == EXCEPTION">
+                        and t.exception_status is not null
+                    </when>
+                    <otherwise>
+                        and t.status = #{status}
+                    </otherwise>
+                </choose>
             </if>
             <if test="name != null and name !=''">
                 and s.name like CONCAT('%', #{name},'%')