宋悦 7 жил өмнө
parent
commit
413fb03e98

+ 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("该用户不存在");