|
@@ -189,7 +189,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
markTaskService.resetById(markTask.getId(), null, null, null, MarkTaskStatus.WAITING);
|
|
|
lockService.waitlock(LockType.STUDENT, markTask.getStudentId());
|
|
|
updateStudentGroupStatus(studentId, examId, paperNumber, groupNumber, SubjectiveStatus.UNMARK);
|
|
|
- markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, 0D, null);
|
|
|
+ markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, null, null);
|
|
|
lockService.unlock(LockType.STUDENT, markTask.getStudentId());
|
|
|
}
|
|
|
markUserGroupService.resetById(markUserGroup.getId());
|
|
@@ -229,7 +229,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
|
|
|
private void resetStudentGroup(Long studentId, Long examId, String paperNumber, Integer groupNumber) {
|
|
|
updateStudentGroupStatus(studentId, examId, paperNumber, groupNumber, SubjectiveStatus.UNMARK);
|
|
|
- markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, 0D, null);
|
|
|
+ markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, null, null);
|
|
|
}
|
|
|
|
|
|
private void updateStudentGroupStatus(Long studentId, Long examId, String paperNumber, Integer groupNumber,
|
|
@@ -385,7 +385,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
} else {
|
|
|
updateStudentGroupStatus(studentId, group.getExamId(), group.getPaperNumber(), group.getNumber(),
|
|
|
SubjectiveStatus.UNMARK);
|
|
|
- markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, 0D, null);
|
|
|
+ markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, null, null);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -395,7 +395,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
&& unGroupQuestionCount == 0) {
|
|
|
scoreCalculate(studentId);
|
|
|
} else {
|
|
|
- markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, 0D, null);
|
|
|
+ markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.UNMARK, null, null);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -688,7 +688,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
|
|
|
// 循环所有主观得分明细
|
|
|
List<MarkSubjectiveScore> list = markSubjectiveScoreService.listByStudentIdAndGroupNumber(studentId, null);
|
|
|
- list.sort(null);
|
|
|
+// list.sort(null);
|
|
|
for (MarkSubjectiveScore ss : list) {
|
|
|
List<MarkSubjectiveScore> mainScoreList = mainScoreMap.get(ss.getMainNumber());
|
|
|
if (mainScoreList == null) {
|
|
@@ -714,7 +714,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
}
|
|
|
for (MarkSubjectiveScore subjectiveScore : mainScoreList) {
|
|
|
subjectiveScore.setMainScore(mainScore.doubleValue());
|
|
|
- markSubjectiveScoreService.saveOrUpdate(subjectiveScore);
|
|
|
+ markSubjectiveScoreService.saveOrUpdateByMultiId(subjectiveScore);
|
|
|
}
|
|
|
scoreMap.put(mainNumber, mainScore.doubleValue());
|
|
|
}
|
|
@@ -725,8 +725,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
totalScore = totalScore.add(BigDecimal.valueOf(scoreMap.get(mainNumber)));
|
|
|
}
|
|
|
// 全部评完,更新考生主观题得分
|
|
|
- markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.MARKED, totalScore.doubleValue(),
|
|
|
- MarkStudent.buildScoreList(scoreList));
|
|
|
+ markStudentService.updateSubjectiveStatusAndScore(studentId, SubjectiveStatus.MARKED, totalScore.doubleValue(), MarkStudent.buildScoreList(scoreList));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -1094,7 +1093,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
return false;
|
|
|
}
|
|
|
// 是否多评情况下已处理过该考生评卷任务
|
|
|
- if (markTaskService.countByStudentIdAndMarkerIdAndIdNotEqual(task.getStudentId(), userId, task.getId()) > 0) {
|
|
|
+ if (markTaskService.countByStudentIdAndMarkerIdAndIdNotEqual(task.getStudentId(), task.getExamId(), task.getPaperNumber(), task.getGroupNumber(), userId, task.getId()) > 0) {
|
|
|
return false;
|
|
|
}
|
|
|
// 未选做
|