OrganizationApiService.java
781 Bytes
package cn.com.glsx.app.modules.remote;
import cn.com.glsx.usercenter.api.feign.OrganizationService;
import com.glsx.plat.core.web.R;
import com.google.gson.reflect.TypeToken;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
@Slf4j
@Service
public class OrganizationApiService {
@Autowired
private OrganizationService organizationService;
/**
* 获取全部下级部门
*
* @return
*/
public Set<Long> getAllSubOrgIds() {
R<Set<Long>> dataR = organizationService.getAllSubOrgIds();
Set<Long> orgListIds = dataR.getDataList(new TypeToken<Set<Long>>() {
}.getType());
return orgListIds;
}
}