feat(exam): 添加学生考试历史结果查看功能

- 新增接口获取指定学生的历史考试结果列表
- 数据库层新增根据学生ID查询历史考试记录的查询方法
- 服务层新增获取学生历史考试结果列表的实现
- 前端api新增调用学生考试历史接口的方法
- 学生详情页增加考试历史记录图表展示板块
- 新增考试历史折线图组件,展示正确词数和错误词数的时间变化
- 使用echarts实现折线图并支持点击显示详情
- 更新项目依赖,新增echarts库用于图表展示
This commit is contained in:
lbw
2025-12-18 11:19:57 +08:00
parent eeeb48d048
commit a50c9a2b16
12 changed files with 302 additions and 13 deletions

View File

@@ -66,5 +66,12 @@
from exam_words_judge_result
where id = #{id}
</select>
<select id="selectByStudentId" resultMap="BaseResultMap">
select *
from exam_words_judge_result
where student_id = #{studentId}
order by start_date desc
limit 500;
</select>
</mapper>