|
@@ -43,9 +43,11 @@
|
|
|
if(t.updateName is not null, t.updateName, t.createName) as updateName,
|
|
|
if(t.updateTime is not null, t.updateTime, t.createTime) as updateTime,
|
|
|
t.enableIpLimit,
|
|
|
- t.monitorVideoSource,
|
|
|
- group_concat(distinct tees.room_code) as roomCode,
|
|
|
+ t.monitorVideoSource
|
|
|
+ <if test="type != null and type != '' and type == 'monitor'">
|
|
|
+ ,group_concat(distinct tees.room_code) as roomCode,
|
|
|
group_concat(distinct tees.room_name) as roomName
|
|
|
+ </if>
|
|
|
from
|
|
|
(select t.id,
|
|
|
t.code,
|
|
@@ -59,6 +61,7 @@
|
|
|
t.update_time as updateTime,
|
|
|
t.enable_ip_limit as enableIpLimit,
|
|
|
t.monitor_video_source as monitorVideoSource,
|
|
|
+ t.monitor_status as monitorStatus,
|
|
|
TRUNCATE(t.progress,2) as progress,
|
|
|
(
|
|
|
select
|
|
@@ -111,7 +114,9 @@
|
|
|
and t.enable = #{enable}
|
|
|
</if>
|
|
|
</where> ) t
|
|
|
- left join t_e_exam_student tees on tees.exam_id = t.id
|
|
|
+ <if test="type != null and type != '' and type == 'monitor'">
|
|
|
+ left join t_e_exam_student tees on tees.exam_id = t.id
|
|
|
+ </if>
|
|
|
group by t.id,
|
|
|
t.code,
|
|
|
t.name,
|
|
@@ -124,7 +129,8 @@
|
|
|
t.updateName,
|
|
|
t.updateTime,
|
|
|
t.enableIpLimit,
|
|
|
- t.monitorVideoSource
|
|
|
+ t.monitorVideoSource,
|
|
|
+ t.monitorStatus
|
|
|
order by t.createTime desc
|
|
|
</select>
|
|
|
|