|
@@ -71,10 +71,21 @@
|
|
|
<if test="teachingRoomId != null and teachingRoomId != ''">
|
|
|
and et.teaching_room_id = #{teachingRoomId}
|
|
|
</if>
|
|
|
- and (tffa.status <![CDATA[ <> ]]> 'START'
|
|
|
- <if test="status != null and status != ''">
|
|
|
- or tffa.status = #{status}
|
|
|
- </if>)
|
|
|
+ <choose>
|
|
|
+ <when test="status != null and status != ''">
|
|
|
+ <choose>
|
|
|
+ <when test="status == 'START'">
|
|
|
+ and tffa.status = #{status}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and (tffa.status <![CDATA[ <> ]]> 'START' and tffa.status = #{status})
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and tffa.status <![CDATA[ <> ]]> 'START'
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
<if test="startTime != null and startTime != ''">
|
|
|
and tffa.create_time <![CDATA[ >= ]]> #{startTime}
|
|
|
</if>
|