|
|
@ -1,6 +1,9 @@ |
|
|
|
package com.epmet.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.GridInfoCache; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.form.EnterGridFormDTO; |
|
|
@ -37,6 +40,16 @@ public class UserAccessServiceImpl implements UserAccessService { |
|
|
|
userInfoParams.setGridId(formDTO.getGridId()); |
|
|
|
Result<UserInfoOnEnterGridResultDTO> userInfoResult = |
|
|
|
epmetUserFeignClient.getUserInfoAndRoles(userInfoParams); |
|
|
|
//获取网格缓存信息
|
|
|
|
if(userInfoResult.success()){ |
|
|
|
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(userInfoResult.getData().getCurrentGridId()); |
|
|
|
if (null == gridInfo) { |
|
|
|
log.error(String.format("居民端进网格接口获取网格缓存信息失败,网格Id->%s",userInfoResult.getData().getCurrentGridId())); |
|
|
|
return userInfoResult; |
|
|
|
} |
|
|
|
userInfoResult.getData().setAgencyId(gridInfo.getPid()); |
|
|
|
userInfoResult.getData().setAgencyName(gridInfo.getAgencyName()); |
|
|
|
} |
|
|
|
return userInfoResult; |
|
|
|
} |
|
|
|
} |
|
|
|