学年标签适配学生奖惩、学生资助模块

This commit is contained in:
2025-12-24 09:14:29 +08:00
parent 7693de822a
commit a0c6add408
15 changed files with 301 additions and 42 deletions

View File

@@ -293,6 +293,23 @@ public class CphBiyeApplyController extends BaseController {
}
}
/**
* 根据标签绑定的学年获取学生体测成绩
* @param stuNo
* @param tag
* @return
*/
@GetMapping("/listStuSportScoreByTag/{stuNo}")
@ApiOperation("获取学生体测成绩")
public AjaxResult listStuSportScore(@PathVariable("stuNo") String stuNo, String tag) {
boolean hasRole = RoleBool.isHigh(getUserId(), _postService);
if (hasRole) {
return cphBiyeApplyService.listStuSportScore(stuNo, tag);
} else {
return AjaxResult.error(401, "你无权做这些");
}
}
@GetMapping("/getStuScoreMajorRank/{stuNo}")
@ApiOperation("获取我的学业成绩排名")
public AjaxResult getStuScoreMajorRank(@PathVariable("stuNo") String stuNo) {
@@ -304,6 +321,17 @@ public class CphBiyeApplyController extends BaseController {
}
}
/**
* 根据标签绑定的学年获取我的体测成绩
* @return
*/
@GetMapping("/listOwnSportScoreByTag")
@ApiOperation("获取我的体测成绩")
public AjaxResult listOwnSportScore(String tag) {
return cphBiyeApplyService.listStuSportScore(getUsername(), tag);
}
@GetMapping("/listOwnSportScore")
@ApiOperation("获取我的体测成绩")

View File

@@ -422,6 +422,18 @@ public class CphGoodApplyController extends BaseController {
}
}
@GetMapping("/listStuScoreClassRankByTag/{stuNo}")
@ApiOperation("根据学年标签查询学生指定学年成绩班级排名")
public AjaxResult listStuScoreClassRank(@PathVariable("stuNo") String stuNo,String tag) {
boolean hasRole = RoleBool.isHigh(getUserId(), _postService);
if (hasRole) {
List<CphClassRankScore> list = cphGoodApplyService.listOwnScoreClassRankByTag(stuNo,tag);//
return success(list);
} else {
return AjaxResult.error(401, "你无权做这些");
}
}
@GetMapping("/listStuYearCourseScore/{stuNo}")
@ApiOperation("查询学生学年课程成绩")
public TableDataInfo listStuYearCourseScore(@PathVariable("stuNo") String stuNo) {
@@ -512,6 +524,21 @@ public class CphGoodApplyController extends BaseController {
return success(list);
}
/**
* 获取某学生指定学年的班级排名,是由前端查询的学年标签对应的学年
* @param tag
* @return
* @author zhy
* @date 2023-09-12 11:34:10
**/
@GetMapping("/listOwnScoreRankByTag")
@ApiOperation("根据学年标签查询我的成绩班级排名")
public AjaxResult listOwnScoreClassRankByYear(String tag) {
String stuNo = getUsername();//学号
List<CphClassRankScore> list = cphGoodApplyService.listOwnScoreClassRankByTag(stuNo,tag);
return success(list);
}
@GetMapping("/listOwnYearCourseScore")
@ApiOperation("查询我的学年课程成绩")
public TableDataInfo listOwnYearCourseScore() {