feat(plan): 支持学案文件下载功能
- 新增 DownLoadLessonPlanReqVO 请求类用于下载请求封装 - 在前端学案列表增加“下载”按钮,支持单条学案下载操作 - 实现前端下载接口,处理后端返回的 Blob 文件流并触发文件保存 - 后端新增下载接口,根据学案 ID 生成对应的 Word 文档并作为附件响应 - WordExportUtil 中新增按模板生成学案 Word 文档方法,支持工作日和周末模板切换 - LessonPlansService 新增根据 ID 查询学案的方法及对应 Mapper 实现 - 修改学案列表中“学案ID”标签为“计划ID”,提升表述准确性 - 下载过程中添加加载状态和错误信息提示,提升用户体验
This commit is contained in:
@@ -33,4 +33,10 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectByLessonId" resultMap="ResultMapWithBLOBs">
|
||||
select *
|
||||
from lesson_plans
|
||||
where id = #{lessonId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user