|
@@ -43,8 +43,8 @@ public class StudentFaceInfoApi {
|
|
|
|
|
|
@ApiOperation(value = "按身份证查询", notes = "查询")
|
|
|
@GetMapping("/identityNumber")
|
|
|
- public ResponseEntity findByIdentityNumber(@RequestParam String identityNumber) {
|
|
|
- Student student = studentRepo.findByIdentityNumber(identityNumber);
|
|
|
+ public ResponseEntity findByIdentityNumber(@RequestParam String identityNumber, @RequestParam Long orgId) {
|
|
|
+ Student student = studentRepo.findByIdentityNumberAndRootOrgId(identityNumber, orgId);
|
|
|
if (student == null) {
|
|
|
return new ResponseEntity(new ErrorMsg("该学生不存在"), HttpStatus.OK);
|
|
|
}
|