소스 검색

新增修改学生密码的功能

YuanPan 7 년 전
부모
커밋
0bb0217eed
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core-api/src/main/java/cn/com/qmth/examcloud/service/core/api/StudentFaceInfoApi.java

+ 2 - 2
core-api/src/main/java/cn/com/qmth/examcloud/service/core/api/StudentFaceInfoApi.java

@@ -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);
         }