|
|
@ -19,8 +19,11 @@ import com.epmet.dataaggre.service.LingShanServiceAgentService; |
|
|
|
import com.epmet.dataaggre.service.epmetuser.EpmetUserService; |
|
|
|
import com.epmet.dataaggre.service.govorg.GovOrgService; |
|
|
|
import com.epmet.dto.SysDictDataDTO; |
|
|
|
import com.epmet.dto.result.LoginUserDetailsResultDTO; |
|
|
|
import com.epmet.feign.EpmetAdminOpenFeignClient; |
|
|
|
import com.epmet.remote.EpmetUserRemoteService; |
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -40,6 +43,9 @@ public class LingShanServiceAgentServiceImpl implements LingShanServiceAgentServ |
|
|
|
@Autowired |
|
|
|
private EpmetAdminOpenFeignClient adminOpenFeignClient; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private EpmetUserRemoteService epmetUserRemoteService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<LingshanServiceAgentAgentList> workPcAgentList(String orgId, String orgType, String agentName, Integer mobile, Integer idCard, |
|
|
|
Integer pageNo, Integer pageSize) { |
|
|
@ -48,6 +54,13 @@ public class LingShanServiceAgentServiceImpl implements LingShanServiceAgentServ |
|
|
|
Map<String, List<String>> staffIdAndGridIds = new HashMap<>(); |
|
|
|
Set<String> staffIds = new HashSet<>(); |
|
|
|
|
|
|
|
if (StringUtils.isAnyBlank(orgId, orgType)) { |
|
|
|
// 如果前端没选择,那就取当前工作人员所属组织
|
|
|
|
LoginUserDetailsResultDTO loginUserDetails = epmetUserRemoteService.getLoginUserDetails(); |
|
|
|
orgId = loginUserDetails.getAgencyId(); |
|
|
|
orgType = OrgInfoConstant.AGENCY; |
|
|
|
} |
|
|
|
|
|
|
|
// 得到staffIds和staffIdAndGridIds
|
|
|
|
if (OrgInfoConstant.AGENCY.equals(orgType)) { |
|
|
|
// agency
|
|
|
|