|
@@ -1040,6 +1040,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
BigDecimal totalScore = BigDecimal.ZERO;
|
|
|
boolean lessSelective = false;
|
|
|
boolean mutiSelective = false;
|
|
|
+ boolean notSelective = false;
|
|
|
Map<Integer, List<SelectiveGroup>> indexMap = selectiveGroupService.findGroupByExamIdAndSubjectCode(examId,
|
|
|
subjectCode);
|
|
|
for (Integer index : indexMap.keySet()) {
|
|
@@ -1120,12 +1121,15 @@ public class MarkServiceImpl implements MarkService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (partScoreList.size() < selectiveCount) {
|
|
|
+ if (partScoreList.size()>0&&partScoreList.size() < selectiveCount) {
|
|
|
lessSelective = true;
|
|
|
}
|
|
|
- if (partScoreList.size() > selectiveCount) {
|
|
|
+ if (partScoreList.size()>0&&partScoreList.size() > selectiveCount) {
|
|
|
mutiSelective = true;
|
|
|
}
|
|
|
+ if(partScoreList.size()==0) {
|
|
|
+ notSelective = true;
|
|
|
+ }
|
|
|
}
|
|
|
// 统一更新得分详情
|
|
|
for (Integer mainNumber : mainScoreMap.keySet()) {
|
|
@@ -1141,6 +1145,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
selectiveStudent.setStudentId(studentId);
|
|
|
selectiveStudent.setLessSelective(lessSelective);
|
|
|
selectiveStudent.setMutiSelective(mutiSelective);
|
|
|
+ selectiveStudent.setNotSelective(notSelective);
|
|
|
selectiveStudentDao.saveAndFlush(selectiveStudent);
|
|
|
// 计算非选做题总分
|
|
|
for (Integer mainNumber : scoreMap.keySet()) {
|