|
@@ -257,7 +257,7 @@ public class StudentController extends ControllerSupport {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询用户
|
|
|
|
|
|
+ * 查询学生
|
|
*
|
|
*
|
|
* @author WANGWEI
|
|
* @author WANGWEI
|
|
* @param identityNumber
|
|
* @param identityNumber
|
|
@@ -265,15 +265,27 @@ public class StudentController extends ControllerSupport {
|
|
* @param securityPhone
|
|
* @param securityPhone
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation(value = "查询学生")
|
|
|
|
+ @GetMapping("getStudentInfoBySession")
|
|
|
|
+ public StudentInfo getStudentInfoBySession() {
|
|
|
|
+ User accessUser = getAccessUser();
|
|
|
|
+ Long rootOrgId = accessUser.getRootOrgId();
|
|
|
|
+ Long studentId = accessUser.getStudentId();
|
|
|
|
+ StudentInfo studentInfo = studentService.getStudentInfo(rootOrgId, studentId, null, null,
|
|
|
|
+ null);
|
|
|
|
+ return studentInfo;
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation(value = "查询学生")
|
|
@ApiOperation(value = "查询学生")
|
|
@GetMapping("getStudentInfo")
|
|
@GetMapping("getStudentInfo")
|
|
- public StudentInfo getStudentInfo(@RequestParam(required = false) String identityNumber,
|
|
|
|
|
|
+ public StudentInfo getStudentInfo(@RequestParam(required = false) Long studentId,
|
|
|
|
+ @RequestParam(required = false) String identityNumber,
|
|
@RequestParam(required = false) String studentCode,
|
|
@RequestParam(required = false) String studentCode,
|
|
@RequestParam(required = false) String securityPhone) {
|
|
@RequestParam(required = false) String securityPhone) {
|
|
User accessUser = getAccessUser();
|
|
User accessUser = getAccessUser();
|
|
Long rootOrgId = accessUser.getRootOrgId();
|
|
Long rootOrgId = accessUser.getRootOrgId();
|
|
- StudentInfo studentInfo = studentService.getStudentInfo(rootOrgId, identityNumber,
|
|
|
|
- studentCode, securityPhone);
|
|
|
|
|
|
+ StudentInfo studentInfo = studentService.getStudentInfo(rootOrgId, studentId,
|
|
|
|
+ identityNumber, studentCode, securityPhone);
|
|
return studentInfo;
|
|
return studentInfo;
|
|
}
|
|
}
|
|
|
|
|