增加了只根据学号查询学生所有学年体测成绩的接口
This commit is contained in:
@@ -3,6 +3,7 @@ package com.srs.web.controller.comprehensive;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.srs.common.utils.SecurityUtils;
|
||||
import com.srs.comprehensive.domain.SrsCourseScore;
|
||||
import com.srs.comprehensive.domain.SrsSportTest;
|
||||
import com.srs.comprehensive.domain.SrsStudent;
|
||||
@@ -169,6 +170,27 @@ public class SrsCourseScoreController extends BaseController {
|
||||
return getDataTable(srsCourseScoreService.selectSrsSportTestStudentStuYear(srsSportTest));
|
||||
}
|
||||
|
||||
/*
|
||||
* 只根据学号查询体能测试成绩
|
||||
* TODO:不根据学年而是根据返回的数组给学生查询体测成绩
|
||||
*/
|
||||
@ApiOperation("根据学号查询体能测试成绩")
|
||||
@GetMapping("/selectTestStu")
|
||||
public TableDataInfo selectTestStu() {
|
||||
startPage();
|
||||
SrsSportTest srsSportTest = new SrsSportTest();
|
||||
SrsStudent srsStudent = new SrsStudent();
|
||||
|
||||
// 只获取当前登录学生学号进行查询
|
||||
String currentStuNo = SecurityUtils.getUsername();
|
||||
if (currentStuNo != null) {
|
||||
srsStudent.setStuNo(currentStuNo);
|
||||
}
|
||||
|
||||
srsSportTest.setStudent(srsStudent);
|
||||
return getDataTable(srsCourseScoreService.selectSrsSportTestStudentStuYear(srsSportTest));
|
||||
}
|
||||
|
||||
/**
|
||||
* 课堂学习连表查询
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user