|
@@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.util.Collections;
|
|
|
import java.util.List;
|
|
@@ -188,6 +189,9 @@ public class OrganizationServiceImpl extends BaseServiceImpl<Integer, Organizati
|
|
|
if(!includeSelf){
|
|
|
selfAndChildOrganIds.remove(organization.getId());
|
|
|
}
|
|
|
+ if(CollectionUtils.isEmpty(selfAndChildOrganIds)){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
return selfAndChildOrganIds;
|
|
|
}
|
|
|
|