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