wangliang vor 4 Jahren
Ursprung
Commit
607b14d4ae

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