|
@@ -518,11 +518,13 @@ public class MarkGroupController extends BaseExamController {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
// 一个选做题大题内的小题必须在一个分组
|
|
// 一个选做题大题内的小题必须在一个分组
|
|
- for (Integer mainNumber : mainNumbers) {
|
|
|
|
- Long count = questionService.countByExamAndSubjectAndObjectiveAndMainNumber(examId, subjectCode, true,
|
|
|
|
- mainNumber);
|
|
|
|
- if (count != selectives.size()) {
|
|
|
|
- return false;
|
|
|
|
|
|
+ if (selectives.size() > 0) {
|
|
|
|
+ for (Integer mainNumber : mainNumbers) {
|
|
|
|
+ Long count = questionService.countByExamAndSubjectAndObjectiveAndMainNumber(examId, subjectCode, true,
|
|
|
|
+ mainNumber);
|
|
|
|
+ if (count != selectives.size()) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (questionIds.length == selectives.size()) {
|
|
if (questionIds.length == selectives.size()) {
|