|
@@ -469,14 +469,11 @@ public class ExamStudentServiceImpl extends BaseQueryService<ExamStudent> implem
|
|
|
studentDao.updateSubjectiveStatusAndScore(id, status, score, scoreList, null, null);
|
|
|
}
|
|
|
|
|
|
- // @Override
|
|
|
- // @Transactional
|
|
|
- // public void resetSubjectiveStatusAndScoreWithoutTrial(Integer examId,
|
|
|
- // String subjectCode) {
|
|
|
- // studentDao.updateSubjectiveStatusAndScoreWithoutStatus(examId,
|
|
|
- // subjectCode, SubjectiveStatus.UNMARK, 0, null,
|
|
|
- // null, null, SubjectiveStatus.TRIAL);
|
|
|
- // }
|
|
|
+ @Override
|
|
|
+ @Transactional
|
|
|
+ public void resetTrial(Integer examId, String subjectCode, boolean trial) {
|
|
|
+ studentDao.updateTrial(examId, subjectCode, trial);
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
@@ -1109,15 +1106,16 @@ public class ExamStudentServiceImpl extends BaseQueryService<ExamStudent> implem
|
|
|
return originTags;
|
|
|
}
|
|
|
|
|
|
-// private boolean checkScore(MarkLibrary library, double score, List<Double> details) {
|
|
|
-// if (library.getMarkerScore() == null) {
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-// if (library.getMarkerScore().doubleValue() != score) {
|
|
|
-// return false;
|
|
|
-// }
|
|
|
-// return true;
|
|
|
-// }
|
|
|
+ // private boolean checkScore(MarkLibrary library, double score,
|
|
|
+ // List<Double> details) {
|
|
|
+ // if (library.getMarkerScore() == null) {
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // if (library.getMarkerScore().doubleValue() != score) {
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ // return true;
|
|
|
+ // }
|
|
|
|
|
|
@Override
|
|
|
public long countByExamIdAndManualAbsent(int examId, boolean manualAbsent) {
|
|
@@ -1528,13 +1526,13 @@ public class ExamStudentServiceImpl extends BaseQueryService<ExamStudent> implem
|
|
|
|
|
|
@Transactional
|
|
|
@Override
|
|
|
- public boolean updateTrial(Integer studentId, boolean trial) {
|
|
|
- return studentDao.updateTrial(studentId, trial) > 0;
|
|
|
+ public boolean updateTrialById(Integer studentId, boolean trial) {
|
|
|
+ return studentDao.updateTrialById(studentId, trial) > 0;
|
|
|
}
|
|
|
|
|
|
@Transactional
|
|
|
- @Override
|
|
|
- public void scoreVerifyView(Integer userId, Integer studentId) {
|
|
|
- studentDao.scoreVerifyTag(userId, new Date(), studentId);
|
|
|
- }
|
|
|
+ @Override
|
|
|
+ public void scoreVerifyView(Integer userId, Integer studentId) {
|
|
|
+ studentDao.scoreVerifyTag(userId, new Date(), studentId);
|
|
|
+ }
|
|
|
}
|