|
@@ -366,13 +366,15 @@
|
|
(tee.exam_count - tees.already_exam_count) as leftExamCount,
|
|
(tee.exam_count - tees.already_exam_count) as leftExamCount,
|
|
if((select count(1) from t_oe_exam_record toer where toer.exam_student_id =
|
|
if((select count(1) from t_oe_exam_record toer where toer.exam_student_id =
|
|
tees.id and (toer.status = 'FINISHED' or toer.status = 'PERSISTED') >
|
|
tees.id and (toer.status = 'FINISHED' or toer.status = 'PERSISTED') >
|
|
- 0),'已完成','未完成') as status
|
|
|
|
|
|
+ 0),'已完成','未完成') as status,
|
|
|
|
+ tes.mobile_number as mobileNumber
|
|
from
|
|
from
|
|
t_e_exam_student tees
|
|
t_e_exam_student tees
|
|
left join t_e_exam tee on
|
|
left join t_e_exam tee on
|
|
tee.id = tees.exam_id
|
|
tee.id = tees.exam_id
|
|
left join t_e_exam_activity teea on
|
|
left join t_e_exam_activity teea on
|
|
teea.id = tees.exam_activity_id
|
|
teea.id = tees.exam_activity_id
|
|
|
|
+ left join t_e_student tes on tees.student_id = tes.id
|
|
inner join (select distinct tbeiu.room_code from t_b_exam_invigilate_user
|
|
inner join (select distinct tbeiu.room_code from t_b_exam_invigilate_user
|
|
tbeiu
|
|
tbeiu
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
@@ -405,28 +407,29 @@
|
|
order by tees.room_code
|
|
order by tees.room_code
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="invigilatePageProgressListExport" resultType="com.qmth.themis.business.bean.backend.InvigilateListProgressBean">
|
|
|
|
|
|
+ <select id="invigilatePageProgressListExport" resultType="com.qmth.themis.business.bean.backend.InvigilateListProgressExcelBean">
|
|
select
|
|
select
|
|
distinct tee.id as examId,
|
|
distinct tee.id as examId,
|
|
tee.name as examName,
|
|
tee.name as examName,
|
|
teea.id as examActivityId,
|
|
teea.id as examActivityId,
|
|
teea.code as examActivityCode,
|
|
teea.code as examActivityCode,
|
|
tees.room_code as roomCode,
|
|
tees.room_code as roomCode,
|
|
- tees.room_name as roomName,
|
|
|
|
|
|
+ group_concat(tees.room_name,CONCAT(CONCAT('(',tees.room_code),')')) as roomName,
|
|
tees.`identity`,
|
|
tees.`identity`,
|
|
tees.name,
|
|
tees.name,
|
|
- tees.course_code as courseCode,
|
|
|
|
- tees.course_name as courseName,
|
|
|
|
|
|
+ group_concat(tees.course_name,CONCAT(CONCAT('(',tees.course_code),')')) as courseName,
|
|
(tee.exam_count - tees.already_exam_count) as leftExamCount,
|
|
(tee.exam_count - tees.already_exam_count) as leftExamCount,
|
|
if((select count(1) from t_oe_exam_record toer where toer.exam_student_id =
|
|
if((select count(1) from t_oe_exam_record toer where toer.exam_student_id =
|
|
tees.id and (toer.status = 'FINISHED' or toer.status = 'PERSISTED') >
|
|
tees.id and (toer.status = 'FINISHED' or toer.status = 'PERSISTED') >
|
|
- 0),'已完成','未完成') as status
|
|
|
|
|
|
+ 0),'已完成','未完成') as status,
|
|
|
|
+ tes.mobile_number as mobileNumber
|
|
from
|
|
from
|
|
t_e_exam_student tees
|
|
t_e_exam_student tees
|
|
left join t_e_exam tee on
|
|
left join t_e_exam tee on
|
|
tee.id = tees.exam_id
|
|
tee.id = tees.exam_id
|
|
left join t_e_exam_activity teea on
|
|
left join t_e_exam_activity teea on
|
|
teea.id = tees.exam_activity_id
|
|
teea.id = tees.exam_activity_id
|
|
|
|
+ left join t_e_student tes on tees.student_id = tes.id
|
|
inner join (select distinct tbeiu.room_code from t_b_exam_invigilate_user
|
|
inner join (select distinct tbeiu.room_code from t_b_exam_invigilate_user
|
|
tbeiu
|
|
tbeiu
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
@@ -456,6 +459,7 @@
|
|
and teea.enable = 1
|
|
and teea.enable = 1
|
|
and tees.enable = 1
|
|
and tees.enable = 1
|
|
</where>
|
|
</where>
|
|
|
|
+ group by tee.id,tees.room_code,tee.name,teea.id,teea.code,tees.`identity`,tees.name,leftExamCount,status,tes.mobile_number
|
|
order by tees.room_code
|
|
order by tees.room_code
|
|
</select>
|
|
</select>
|
|
|
|
|