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