|
@@ -36,8 +36,8 @@ public class OverviewController extends BaseExamController {
|
|
}else {
|
|
}else {
|
|
model.addAttribute("checkStudentOk", false);
|
|
model.addAttribute("checkStudentOk", false);
|
|
}
|
|
}
|
|
- model.addAttribute("checkSubjectOk", examSubjectService.checkSubjectForExport(examId));
|
|
|
|
- model.addAttribute("checkAbsentOk", examSubjectService.checkSubjectAbsentForExport(examId));
|
|
|
|
|
|
+ model.addAttribute("checkSubjectOk", studentCount>0&&examSubjectService.checkSubjectForExport(examId));
|
|
|
|
+ model.addAttribute("checkAbsentOk", studentCount>0&&examSubjectService.checkSubjectAbsentForExport(examId));
|
|
return "modules/basic/overview";
|
|
return "modules/basic/overview";
|
|
}
|
|
}
|
|
|
|
|