wangliang пре 4 година
родитељ
комит
7c25c18526
1 измењених фајлова са 2 додато и 16 уклоњено
  1. 2 16
      themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

+ 2 - 16
themis-business/src/main/resources/mapper/TOeExamRecordMapper.xml

@@ -133,14 +133,7 @@
 				and s.room_code = #{roomCode}
 			</if>
 			<if test="status != null and status != ''">
-				<choose>
-					<when test="status == 'EXAMING'">
-						and (t.status = 'ANSWERING' or t.status = 'RESUME_PREPARE')
-					</when>
-					<otherwise>
-						and t.status = #{status}
-					</otherwise>
-				</choose>
+				and t.status = #{status}
 			</if>
 			<if test="name != null and name !=''">
 				and s.name like CONCAT('%', #{name},'%')
@@ -176,14 +169,7 @@
 				and s.room_code = #{roomCode}
 			</if>
 			<if test="status != null and status != ''">
-				<choose>
-					<when test="status == 'EXAMING'">
-						and (t.status = 'ANSWERING' or t.status = 'RESUME_PREPARE')
-					</when>
-					<otherwise>
-						and t.status = #{status}
-					</otherwise>
-				</choose>
+				and t.status = #{status}
 			</if>
 			<if test="name != null and name !=''">
 				and s.name like CONCAT('%', #{name},'%')