在线课考试成绩为空问题修改

This commit is contained in:
zhaolongfei
2024-06-19 15:49:35 +08:00
parent 7d08954525
commit 33fee46433

View File

@@ -118,6 +118,7 @@ public class StudyExamServiceImpl implements IStudyExamService{
scItemDao.updateFieldById(exam.getStudyId(), "finish_time",LocalDateTime.now());
scItemDao.updateFieldById(exam.getStudyId(), "status",StudyCourseItem.STATUS_FINISH);
scItemDao.updateFieldById(exam.getStudyId(), "score",100.0f);
scDao.updateFieldById(exam.getStudyId(), "last_score",100.0f);
}
}
@@ -132,6 +133,7 @@ public class StudyExamServiceImpl implements IStudyExamService{
scItemDao.updateFieldById(exam.getStudyId(), "finish_time",LocalDateTime.now());
scItemDao.updateFieldById(exam.getStudyId(), "status",StudyCourseItem.STATUS_FINISH);
scItemDao.updateFieldById(exam.getStudyId(), "score",100.0f);
scDao.updateFieldById(exam.getStudyId(), "last_score",100.0f);
}
}