|
|
@ -6,6 +6,8 @@ import com.epmet.commons.tools.constant.AppClientConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
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.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.HttpClientManager; |
|
|
@ -138,7 +140,7 @@ public class ResiMineGridServiceImpl implements ResiMineGridService { |
|
|
|
logger.error(String.format("居民端获取用户最近访问网格失败,接口入参客户Id->%s,appId->%s,调用epmet-user-server服务返回->%s", formDTO.getCustomerId(), formDTO.getAppId(), JSON.toJSONString(userResult))); |
|
|
|
return null; |
|
|
|
} |
|
|
|
// 查询注册网格的弃用状态
|
|
|
|
// 查询注册网格的弃用状态
|
|
|
|
LatestGridInfoResultDTO result = userResult.getData(); |
|
|
|
Result<List<UserBaseInfoResultDTO>> userBaseInfo = epmetUserOpenFeignClient.queryUserBaseInfo(Arrays.asList(formDTO.getUserId())); |
|
|
|
if (!userBaseInfo.success()){ |
|
|
@ -146,7 +148,7 @@ public class ResiMineGridServiceImpl implements ResiMineGridService { |
|
|
|
} |
|
|
|
GridInfoCache grid = CustomerOrgRedis.getGridInfo(userBaseInfo.getData().get(NumConstant.ZERO).getRegisteredGridId()); |
|
|
|
if (grid != null) { |
|
|
|
result.setRegisterGridStatus(grid.getAbandonFlag().compareTo(NumConstant.ONE) == NumConstant.ZERO ? true : false); |
|
|
|
result.setRegisterGridStatus(grid.getAbandonFlag().compareTo(NumConstant.ONE) == NumConstant.ZERO); |
|
|
|
} |
|
|
|
return result; |
|
|
|
} |
|
|
|