|
@@ -359,6 +359,14 @@ public class ExamStudentService {
|
|
|
" select t2.exam_times from ecs_exam t2 where t2.id = t1.exam_id "+
|
|
|
")");
|
|
|
sql.append(" and t1.exam_id="+examCriteria.getExamId());
|
|
|
+ //排除掉设置了重考,但是还没考试的考生
|
|
|
+ sql.append(" and t1.id not in ( "
|
|
|
+ + " select t2.exam_student_id "
|
|
|
+ + " from oe_exam_record t2 "
|
|
|
+ + " where t2.batch_id = "+examCriteria.getExamId()
|
|
|
+ + " and t2.is_reexamine = 1 "
|
|
|
+ + " and t2.`status` = 'EXAM_INVALID' "
|
|
|
+ +") ");
|
|
|
sql.append(getSqlSpecification(examCriteria));
|
|
|
sql.append(" limit "+(curPage-1)*pageSize+","+pageSize);
|
|
|
|