Commit ce21faa4 by 叶立庆

修复未匹配考试等级时,不推送学习计划

1 parent 03ac472c
...@@ -86,15 +86,22 @@ public class LearningCenterLevelExamPersonService { ...@@ -86,15 +86,22 @@ public class LearningCenterLevelExamPersonService {
LearningCenterLevelExamPerson examPersonUpdate = new LearningCenterLevelExamPerson(); LearningCenterLevelExamPerson examPersonUpdate = new LearningCenterLevelExamPerson();
examPersonUpdate.setId(id); examPersonUpdate.setId(id);
examPersonUpdate.setLevelId(levelExamLevel.getId()); if (levelExamLevel != null) {
examPersonUpdate.setLevelName(levelExamLevel.getLevelName()); examPersonUpdate.setLevelId(levelExamLevel.getId());
examPersonUpdate.setLevelName(levelExamLevel.getLevelName());
}
examPersonUpdate.setScore(rootTopPoint); examPersonUpdate.setScore(rootTopPoint);
int updateCount = levelExamPersonMapper.completeRecord(examPersonUpdate); int updateCount = levelExamPersonMapper.completeRecord(examPersonUpdate);
if (updateCount != 1) { if (updateCount != 1) {
log.error("完成等级考试更新失败 id:{}", id);
return; return;
} }
levelExamMapper.completionIncreaseCount(levelExam.getId()); levelExamMapper.completionIncreaseCount(levelExam.getId());
if (examPersonUpdate.getLevelId() == null) {
log.info("未查询到等级考试等级 examPersonId:{}", id);
return;
}
try { try {
taskExecutor.execute(() -> { taskExecutor.execute(() -> {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!