前端代码 和 权限校验

This commit is contained in:
liumengyu
2026-08-21 17:46:50 +08:00
parent 179b12e3bf
commit 8312231af5
11 changed files with 201 additions and 93 deletions
@@ -384,23 +384,41 @@ public class StudentRecordsController {
// ======================== 课程成绩查询 ========================
/**
* 查询学员的课程成绩列表JW
* 分页查询学员的课程成绩列表
* <p>默认不传参数则全部分页展示;可按学员编号、年度筛选;年度不传时默认展示最新年度(最大年度)的数据。</p>
*
* @param xybh 学员编号
* @param pageNum 页码(默认1
* @param pageSize 每页条数(默认20
* @param xybh 学员编号(可选)
* @param nd 年度(可选)
*/
@GetMapping("/grades")
public Result<List<XYKCCJ>> getGrades(@RequestParam("xybh") String xybh) {
return Result.success(studentRecordsService.getCourseGrades(xybh));
public Result<PageResult<XYKCCJ>> getGrades(
@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "20") Integer pageSize,
@RequestParam(required = false) String xybh,
@RequestParam(required = false) Integer nd) {
return Result.success(studentRecordsService.pageCourseGrades(
new PageQuery(pageNum, pageSize), xybh, nd));
}
/**
* 查询学员的课程过程成绩列表
* 分页查询学员的课程过程成绩列表
* <p>默认不传参数则全部分页展示;可按学员编号、年度筛选;年度不传时默认展示最新年度(最大年度)的数据。</p>
*
* @param xybh 学员编号
* @param pageNum 页码(默认1
* @param pageSize 每页条数(默认20
* @param xybh 学员编号(可选)
* @param nd 年度(可选)
*/
@GetMapping("/process-grades")
public Result<List<XYKCGCCJ>> getProcessGrades(@RequestParam("xybh") String xybh) {
return Result.success(studentRecordsService.getCourseProcessGrades(xybh));
public Result<PageResult<XYKCGCCJ>> getProcessGrades(
@RequestParam(defaultValue = "1") Integer pageNum,
@RequestParam(defaultValue = "20") Integer pageSize,
@RequestParam(required = false) String xybh,
@RequestParam(required = false) Integer nd) {
return Result.success(studentRecordsService.pageCourseProcessGrades(
new PageQuery(pageNum, pageSize), xybh, nd));
}
/**