mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-14 13:26:49 +08:00
Merge remote-tracking branch 'origin/dev0525' into dev0525
This commit is contained in:
@@ -132,10 +132,13 @@ public class StudyExamServiceImpl implements IStudyExamService{
|
|||||||
scItemDao.updateFieldById(exam.getStudyId(), "progress",100);
|
scItemDao.updateFieldById(exam.getStudyId(), "progress",100);
|
||||||
scItemDao.updateFieldById(exam.getStudyId(), "finish_time",LocalDateTime.now());
|
scItemDao.updateFieldById(exam.getStudyId(), "finish_time",LocalDateTime.now());
|
||||||
scItemDao.updateFieldById(exam.getStudyId(), "status",StudyCourseItem.STATUS_FINISH);
|
scItemDao.updateFieldById(exam.getStudyId(), "status",StudyCourseItem.STATUS_FINISH);
|
||||||
scItemDao.updateFieldById(exam.getStudyId(), "score",100.0f);
|
scItemDao.updateFieldById(exam.getStudyId(), "score",exam.getScore());
|
||||||
//scDao.updateFieldById(exam.getStudyId(), "last_score",100.0f);
|
//scDao.updateFieldById(exam.getStudyId(), "last_score",100.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
int totalContent = courseContentDao.getCount(exam.getCourseId());
|
||||||
|
scDao.finishCheck(exam.getStudyId(),exam.getCourseId(),totalContent,token);
|
||||||
scDao.updateFieldById(exam.getStudyId(), "last_score",exam.getScore());
|
scDao.updateFieldById(exam.getStudyId(), "last_score",exam.getScore());
|
||||||
//执行完毕 清除redis记录
|
//执行完毕 清除redis记录
|
||||||
// redisTemplate.delete(key);
|
// redisTemplate.delete(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user