宋悦 преди 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("该用户不存在");