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},'%')