宋悦 7 년 전
부모
커밋
413fb03e98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core-api/src/main/java/cn/com/qmth/examcloud/service/core/service/StudentService.java

+ 1 - 1
core-api/src/main/java/cn/com/qmth/examcloud/service/core/service/StudentService.java

@@ -183,7 +183,7 @@ public class StudentService {
             student = studentRepo.findByUserRootOrgIdAndStudentCode(org.getId(), loginName);
         }
         if (LoginType.IDENTITY_NUMBER.equals(loginType)) {
-            student = studentRepo.findByIdentityNumber(loginName);
+            student = studentRepo.findByIdentityNumberAndRootOrgId(loginName,org.getId());
         }
         if (student == null) {
             throw new RuntimeException("该用户不存在");