feat(grade): 添加年级列表及分页功能
- 前端新增年级列表展示表格和分页组件,同时支持加载状态显示 - 新增 grade.js 接口调用,支持分页查询年级数据 - 后端新增 GradeController 提供分页查询接口 /grade/list - 实现 GradeService 新增分页查询和总数量统计方法 - 添加 GradeDOMapper 新增分页查询及计数 SQL 语句 - 定义请求与响应VO类用于年级分页查询接口数据传输 - 页面 onMounted 时同时请求班级列表和年级列表数据,提升数据展示完整性
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
from grade
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectByGradeIds" resultMap="BaseResultMap">
|
||||
select *
|
||||
from grade
|
||||
@@ -21,4 +22,15 @@
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
<select id="selectList" resultMap="BaseResultMap">
|
||||
select *
|
||||
from grade
|
||||
limit #{startIndex},#{pageSize}
|
||||
</select>
|
||||
|
||||
<select id="selectCount" resultType="java.lang.Integer">
|
||||
select count(1)
|
||||
from grade
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user