WANG 6 lat temu
rodzic
commit
1ab1b1ab30

+ 1 - 3
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/StudentServiceImpl.java

@@ -245,9 +245,7 @@ public class StudentServiceImpl implements StudentService {
 		if (null != studentId) {
 			count++;
 			s = GlobalHelper.getEntity(studentRepo, studentId, StudentEntity.class);
-		}
-
-		if (null == rootOrgId) {
+		} else if (null == rootOrgId) {
 			throw new StatusException("160250", "rootOrgId is null");
 		}