wangwei 6 gadi atpakaļ
vecāks
revīzija
d00bda7559

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

@@ -74,10 +74,13 @@ public class StudentServiceImpl implements StudentService {
 				throw new StatusException("B-160050", "orgId is wrong");
 			}
 			if (!org.getRootId().equals(rootOrgId)) {
+				throw new StatusException("B-160051", "orgId is wrong");
+			}
+			if (null == org.getParentId()) {
 				throw new StatusException("B-160052", "orgId is wrong");
 			}
 			if (!org.getParentId().equals(rootOrgId)) {
-				throw new StatusException("B-160051", "orgId is wrong");
+				throw new StatusException("B-160053", "orgId is wrong");
 			}
 		} else if (StringUtils.isNotBlank(orgCode)) {
 			OrgEntity org = orgRepo.findByRootIdAndCode(rootOrgId, orgCode);