|
@@ -13,7 +13,7 @@
|
|
tees.course_code as courseCode,
|
|
tees.course_code as courseCode,
|
|
tees.course_name as courseName,
|
|
tees.course_name as courseName,
|
|
tees.exam_id as examId,
|
|
tees.exam_id as examId,
|
|
- tee.exam_count - tees.already_exam_count as examCount,
|
|
|
|
|
|
+ if(tee.exam_count - tees.already_exam_count <![CDATA[ < ]]> 0,0,tee.exam_count - tees.already_exam_count) as examCount,
|
|
(select count(1) from t_oe_exam_record toer where (toer.status <![CDATA[ <> ]]> 'FINISHED' and toer.status <![CDATA[ <> ]]> 'PERSISTED') and toer.exam_student_id = tees.id) as statusCount,
|
|
(select count(1) from t_oe_exam_record toer where (toer.status <![CDATA[ <> ]]> 'FINISHED' and toer.status <![CDATA[ <> ]]> 'PERSISTED') and toer.exam_student_id = tees.id) as statusCount,
|
|
(select count(1) from t_e_exam_reexam teer where teer.exam_student_id = tees.id and teer.status = 1) as reexamCount
|
|
(select count(1) from t_e_exam_reexam teer where teer.exam_student_id = tees.id and teer.status = 1) as reexamCount
|
|
from
|
|
from
|