class id 不允许null

This commit is contained in:
2026-08-25 14:45:17 +08:00
parent cb51543aff
commit c038026121
@@ -24,25 +24,25 @@ public class SchHistoryController {
private IStudentClassHistoryService studentClassHistoryService; // 使用接口
@GetMapping("getClass")
public HistorySchClassVO GetClassFirst(Integer classId) {
public HistorySchClassVO GetClassFirst(int classId) {
return studentClassHistoryService.GetClassFirst(UserContext.getSchId(),classId);
}
//获取历史学生信息(逐年倒序)
@GetMapping("getHistoryClassStudent")
public List<HistorySchStudentVO> getHistoryClassStudent(Integer classId) {
public List<HistorySchStudentVO> getHistoryClassStudent(int classId) {
return studentClassHistoryService.getHistoryClassStudent(UserContext.getSchId(),classId);
}
//获取历史任教信息
@GetMapping("getHistoryClassTeach")
public List<HistoryClassTeachVO> getHistoryClassTeach(Integer classId) {
public List<HistoryClassTeachVO> getHistoryClassTeach(int classId) {
return studentClassHistoryService.getHistoryClassTeach(UserContext.getSchId(),classId);
}
//通过学生stuId获取历史任教信息
@GetMapping("getHistoryClassTeachByStuId")
public Map<String, Object> getHistoryClassTeachByStuId(Integer stuId) {
public Map<String, Object> getHistoryClassTeachByStuId(int stuId) {
return studentClassHistoryService.getHistoryClassTeachByStuId(UserContext.getSchId(),stuId);
}