Эх сурвалжийг харах

新增修改学生密码的功能

YuanPan 7 жил өмнө
parent
commit
0bb0217eed

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