|
@@ -409,7 +409,7 @@ public class MarkServiceImpl implements MarkService {
|
|
@Override
|
|
@Override
|
|
public void buildMarkTask(MarkPaper markPaper) {
|
|
public void buildMarkTask(MarkPaper markPaper) {
|
|
try {
|
|
try {
|
|
- if(markPaper.getPaperNumber().equals("1017")){
|
|
|
|
|
|
+ if (markPaper.getPaperNumber().equals("1017")) {
|
|
System.out.println(1);
|
|
System.out.println(1);
|
|
}
|
|
}
|
|
lockService.watch(LockType.EXAM_SUBJECT, markPaper.getExamId(), markPaper.getPaperNumber());
|
|
lockService.watch(LockType.EXAM_SUBJECT, markPaper.getExamId(), markPaper.getPaperNumber());
|
|
@@ -868,6 +868,7 @@ public class MarkServiceImpl implements MarkService {
|
|
markTaskService.updateHeaderResult(markStudent.getExamId(), markStudent.getPaperNumber(),
|
|
markTaskService.updateHeaderResult(markStudent.getExamId(), markStudent.getPaperNumber(),
|
|
result.getQuestionId(), markStudent.getId(), userId, result.getMarkerScore(), result.getMarkerTrackList(), result.getMarkerTagList(), currentTime, MarkTaskStatus.MARKED);
|
|
result.getQuestionId(), markStudent.getId(), userId, result.getMarkerScore(), result.getMarkerTrackList(), result.getMarkerTagList(), currentTime, MarkTaskStatus.MARKED);
|
|
updateMarkedCount(markStudent.getExamId(), markStudent.getPaperNumber(), result.getQuestionId());
|
|
updateMarkedCount(markStudent.getExamId(), markStudent.getPaperNumber(), result.getQuestionId());
|
|
|
|
+ resetStudentStatus(markStudent.getId());
|
|
markStudentService.updateCheckInfo(markStudent.getId(), userId);
|
|
markStudentService.updateCheckInfo(markStudent.getId(), userId);
|
|
checkStudentQuestion(markStudent.getId(), markQuestionService.getById(result.getQuestionId()), result.getMarkerScore());
|
|
checkStudentQuestion(markStudent.getId(), markQuestionService.getById(result.getQuestionId()), result.getMarkerScore());
|
|
} catch (ApiException e) {
|
|
} catch (ApiException e) {
|
|
@@ -876,7 +877,6 @@ public class MarkServiceImpl implements MarkService {
|
|
lockService.unwatch(LockType.QUESTION, result.getQuestionId());
|
|
lockService.unwatch(LockType.QUESTION, result.getQuestionId());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- resetStudentStatus(markStudent.getId());
|
|
|
|
}
|
|
}
|
|
|
|
|
|
private void updateMarkSubjectScore(MarkStudent markStudent, MarkResultQuestion resultQuestion, Long userId) {
|
|
private void updateMarkSubjectScore(MarkStudent markStudent, MarkResultQuestion resultQuestion, Long userId) {
|
|
@@ -1170,8 +1170,7 @@ public class MarkServiceImpl implements MarkService {
|
|
resetStudentStatus(task.getStudentId());
|
|
resetStudentStatus(task.getStudentId());
|
|
count++;
|
|
count++;
|
|
}
|
|
}
|
|
- }
|
|
|
|
- if (markResultQuestion.getMarkerScore() <= markQuestion.getTotalScore()) {//阅卷分是否小于等于该组总分
|
|
|
|
|
|
+ } else if (markResultQuestion.getMarkerScore() <= markQuestion.getTotalScore()) {//阅卷分是否小于等于该组总分
|
|
if (submitTask(task, userId, markQuestion, markResultQuestion)) {
|
|
if (submitTask(task, userId, markQuestion, markResultQuestion)) {
|
|
updateMarkedCount(markUserQuestion.getExamId(), markUserQuestion.getPaperNumber(), markUserQuestion.getQuestionId());
|
|
updateMarkedCount(markUserQuestion.getExamId(), markUserQuestion.getPaperNumber(), markUserQuestion.getQuestionId());
|
|
count++;
|
|
count++;
|
|
@@ -1198,8 +1197,8 @@ public class MarkServiceImpl implements MarkService {
|
|
MarkProblemStatus.WAITING);
|
|
MarkProblemStatus.WAITING);
|
|
if (history == null) {
|
|
if (history == null) {
|
|
history = new MarkProblemHistory();
|
|
history = new MarkProblemHistory();
|
|
|
|
+ history.setId(SystemConstant.getDbUuid());
|
|
}
|
|
}
|
|
- history.setId(SystemConstant.getDbUuid());
|
|
|
|
history.setExamId(task.getExamId());
|
|
history.setExamId(task.getExamId());
|
|
history.setSecretNumber(task.getSecretNumber());
|
|
history.setSecretNumber(task.getSecretNumber());
|
|
history.setStudentCode(task.getStudentCode());
|
|
history.setStudentCode(task.getStudentCode());
|
|
@@ -1214,7 +1213,7 @@ public class MarkServiceImpl implements MarkService {
|
|
history.setCreateTime(System.currentTimeMillis());
|
|
history.setCreateTime(System.currentTimeMillis());
|
|
history.setStatus(MarkProblemStatus.WAITING);
|
|
history.setStatus(MarkProblemStatus.WAITING);
|
|
history.setUserId(userId);
|
|
history.setUserId(userId);
|
|
- markProblemHistoryService.save(history);
|
|
|
|
|
|
+ markProblemHistoryService.saveOrUpdate(history);
|
|
}
|
|
}
|
|
|
|
|
|
private boolean submitTask(MarkTask task, Long userId, MarkQuestion markQuestion, MarkResultQuestion result) {
|
|
private boolean submitTask(MarkTask task, Long userId, MarkQuestion markQuestion, MarkResultQuestion result) {
|