|
@@ -96,7 +96,7 @@ public class FixExamScoreServiceImpl implements FixExamScoreService {
|
|
|
|
|
|
if (needUpdateFinalScore) {
|
|
|
examStudentFinalScoreService.calcAndSaveFinalScore(req.getExamStudentId());
|
|
|
- log.warn("【重算成绩】修改最终成绩! examStudentId:{}", req.getExamStudentId());
|
|
|
+ log.warn("【重算成绩】最终成绩-已更新! examStudentId:{}", req.getExamStudentId());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -139,11 +139,12 @@ public class FixExamScoreServiceImpl implements FixExamScoreService {
|
|
|
|
|
|
// 保存考生作答记录
|
|
|
examRecordQuestionsRepo.save(examRecordQuestion);
|
|
|
+ log.warn("【重算成绩】考生作答记录-已更新! examRecordDataId:{} ", examRecordData.getId());
|
|
|
|
|
|
// 计算成绩
|
|
|
this.calcExamScore(examRecordData.getId(), examQuestions);
|
|
|
|
|
|
- log.info("【重算成绩】结束!examRecordDataId:{} newPaperScore:{}", examRecordData.getId(),
|
|
|
+ log.info("【重算成绩】结束!examRecordDataId:{} paperScore:{}", examRecordData.getId(),
|
|
|
examRecordData.getPaperScore());
|
|
|
return true;
|
|
|
}
|
|
@@ -189,6 +190,8 @@ public class FixExamScoreServiceImpl implements FixExamScoreService {
|
|
|
examScore.setObjectiveAccuracy(objectiveAccuracy);
|
|
|
examScore.setTotalScore(objectiveScore + subjectiveScore);
|
|
|
examScoreRepo.save(examScore);
|
|
|
+ log.warn("【重算成绩】考试记录成绩-已更新!examRecordDataId:{} objectiveScore:{} subjectiveScore:{}",
|
|
|
+ examRecordDataId, objectiveScore, subjectiveScore);
|
|
|
}
|
|
|
|
|
|
ExamRecordForMarkingEntity examRecordForMarking = examRecordForMarkingRepo.findByExamRecordDataId(
|
|
@@ -196,9 +199,9 @@ public class FixExamScoreServiceImpl implements FixExamScoreService {
|
|
|
if (examRecordForMarking != null) {
|
|
|
examRecordForMarking.setObjectiveScore(objectiveScore);
|
|
|
examRecordForMarkingRepo.save(examRecordForMarking);
|
|
|
+ log.warn("【重算成绩】ExamRecordForMarkingEntity-已更新!examRecordDataId:{} objectiveScore:{}",
|
|
|
+ examRecordDataId, objectiveScore);
|
|
|
}
|
|
|
-
|
|
|
- log.info("【重算成绩】 examRecordDataId:{} objectiveScore:{}", examRecordDataId, objectiveScore);
|
|
|
}
|
|
|
|
|
|
private void changeQuestionScore(ReFixScoreReq req, ExamRecordDataEntity examRecordData,
|
|
@@ -288,14 +291,14 @@ public class FixExamScoreServiceImpl implements FixExamScoreService {
|
|
|
|
|
|
// 保存考生试卷结构
|
|
|
examRecordPaperStructRepo.save(examRecordPaperStruct);
|
|
|
- log.info("【修改试题分值】更新试卷结构成功! examRecordDataId:{} paperStructId:{}", examRecordData.getId(),
|
|
|
+ log.warn("【修改试题分值】考生试卷结构-已更新! examRecordDataId:{} paperStructId:{}", examRecordData.getId(),
|
|
|
examRecordPaperStruct.getId());
|
|
|
|
|
|
if (paperScore != examRecordData.getPaperScore()) {
|
|
|
// 更新考试记录的试卷总分
|
|
|
examRecordData.setPaperScore(paperScore);
|
|
|
examRecordDataRepo.updateExamRecordPaperScoreById(examRecordData.getId(), paperScore);
|
|
|
- log.info("【修改试题分值】更新考试记录的试卷总分成功! examRecordDataId:{} paperScore:{}",
|
|
|
+ log.warn("【修改试题分值】考试记录的试卷总分-已更新! examRecordDataId:{} paperScore:{}",
|
|
|
examRecordData.getId(), paperScore);
|
|
|
}
|
|
|
}
|