feat(exam): 实现按学生批量生成并下载试题功能
- 增加学生多选功能和生成试题按钮,支持批量操作 - 新增ExamGenerateDialog组件,提供选择年级和难度界面 - 设计后端接口支持多个学生ID,生成对应的试题文档 - 在后端实现批量生成Word文档并压缩打包下载 - 新增StudentDetail业务对象,完善学生信息展示 - 优化了Mapper接口及XML,支持批量查询学生和班级数据 - 提供前端API封装用于调用试题生成和下载服务 - 实现下载失败时的错误处理与提示机制
This commit is contained in:
@@ -23,5 +23,14 @@
|
||||
from `class`
|
||||
</select>
|
||||
|
||||
<select id="selectClassDOListByIds" resultType="com.yinlihupo.enlish.service.domain.dataobject.ClassDO">
|
||||
select *
|
||||
from `class`
|
||||
where id in
|
||||
<foreach collection="classIds" item="classId" separator="," close=")" open="(" index="">
|
||||
#{classId}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@@ -38,4 +38,13 @@
|
||||
from student
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectStudentDOListByIds" resultMap="BaseResultMap">
|
||||
select *
|
||||
from student
|
||||
where id in
|
||||
<foreach item="id" collection="ids" separator="," open="(" close=")" index="index">
|
||||
#{id}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user