feat(unit): 新增单元管理功能及相关接口
- 新增单元的请求和响应VO类,实现分页查询单元列表 - 新增UnitController,提供单元列表查询、添加和删除API接口 - 实现UnitService及其实现类,完成单元相关数据库操作和业务逻辑 - 扩展UnitDOMapper及对应XML,实现单元列表和数量查询功能 - 扩展GradeUnitDOMapper,支持单元与年级关联的插入与删除 - 在enlish-vue中新增单元列表展示、分页、删除及新增对话框功能 - 编写AddUnitDialog组件,实现新增单元UI及逻辑 - 新增unit.js接口封装单元相关的API请求 - 注释掉LessonPlansServiceImpl中的导出Word文档相关代码逻辑调整 - 调整class.vue页面样式和布局,集成单元管理模块并优化查询交互
This commit is contained in:
@@ -19,5 +19,13 @@
|
||||
where unit_id = #{unitId}
|
||||
</select>
|
||||
|
||||
<insert id="insert">
|
||||
insert into grade_unit (grade_id, unit_id)
|
||||
values (#{gradeId}, #{unitId})
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByUnitId">
|
||||
delete from grade_unit
|
||||
where unit_id = #{unitId}
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -91,4 +91,15 @@
|
||||
where title = #{title}
|
||||
</select>
|
||||
|
||||
<select id="selectUnitDOList" resultMap="BaseResultMap">
|
||||
select *
|
||||
from unit
|
||||
limit #{startIndex}, #{pageSize}
|
||||
</select>
|
||||
|
||||
<select id="selectUnitDOListCount" resultType="java.lang.Integer">
|
||||
select count(*)
|
||||
from unit
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user