|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.enums.OrgTypeEnum; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
@ -14,6 +15,7 @@ import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.utils.HttpClientManager; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.CustomerGridDTO; |
|
|
|
import com.epmet.dto.result.CustomerStaffGridResultDTO; |
|
|
|
import com.epmet.feign.EpmetUserOpenFeignClient; |
|
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
|
import com.epmet.opendata.dao.CaRotatorsDao; |
|
|
@ -116,11 +118,11 @@ public class CaRotatorsServiceImpl extends BaseServiceImpl<CaRotatorsDao, CaRota |
|
|
|
CustomerStaffInfoCacheResult staffInfo = CustomerStaffRedis.getStaffInfo(dto.getCustomerId(), dto.getUserId()); |
|
|
|
String agencyId = staffInfo.getAgencyId(); |
|
|
|
// 根据组织id获取gridId网格id
|
|
|
|
Result<List<CustomerGridDTO>> gridIListByAgency = govOrgOpenFeignClient.getGridIListByAgency(agencyId); |
|
|
|
Result<List<CustomerStaffGridResultDTO>> staffGridList = govOrgOpenFeignClient.getStaffGridList(dto.getCustomerId(), agencyId, OrgTypeEnum.AGENCY.getCode()); |
|
|
|
List<String> gridList = new ArrayList<>(); |
|
|
|
gridList.add(agencyId); |
|
|
|
gridIListByAgency.getData().forEach(item -> { |
|
|
|
gridList.add(item.getId()); |
|
|
|
staffGridList.getData().forEach(item -> { |
|
|
|
gridList.add(item.getGridId()); |
|
|
|
}); |
|
|
|
|
|
|
|
PageHelper.startPage(dto.getPage(), dto.getLimit()); |
|
|
|