|
@@ -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);
|