|
@@ -1035,11 +1035,13 @@ public class ExamStudentServiceImpl extends BaseQueryService<ExamStudent> implem
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public long countByExamIdAndSubjectCodeAndStatus(int examId, String subjectCode, SubjectiveStatus status) {
|
|
|
+ public long countByExamIdAndSubjectCodeAndStatus(int examId, String subjectCode, SubjectiveStatus... status) {
|
|
|
ExamStudentSearchQuery query = new ExamStudentSearchQuery();
|
|
|
query.setExamId(examId);
|
|
|
query.setSubjectCode(subjectCode);
|
|
|
- query.addStatus(status);
|
|
|
+ for (SubjectiveStatus subjectiveStatus : status) {
|
|
|
+ query.addStatus(subjectiveStatus);
|
|
|
+ }
|
|
|
return countByQuery(query);
|
|
|
}
|
|
|
|