|
@@ -670,10 +670,10 @@
|
|
|
sb.name as subjectName,
|
|
|
count(1) as totalCount,
|
|
|
sum(case
|
|
|
- when stu.file_upload_status = 'UPLOADED' and stu.image_check_status = 'WAITING' then 1
|
|
|
+ when stu.image_check_status = 'WAITING' then 1
|
|
|
else 0 end) waitingCount,
|
|
|
sum(case
|
|
|
- when stu.file_upload_status = 'UPLOADED' and stu.image_check_status = 'FAILED' then 1
|
|
|
+ when stu.image_check_status = 'FAILED' then 1
|
|
|
else 0 end) failedCount
|
|
|
from sc_student stu
|
|
|
inner join sc_subject sb on sb.exam_id = stu.exam_id and sb.code = stu.subject_code
|