|
|
@ -226,17 +226,6 @@ public class MyHomeServiceImpl implements MyHomeService { |
|
|
|
resultDto.setHouseCode(houseInfo.getHouseCode()); |
|
|
|
resultDto.setQrCodeUrl(houseInfo.getHouseQrcodeUrl()); |
|
|
|
resultDto.setCoding(houseInfo.getCoding()); |
|
|
|
/*没必要再调用feign了,上面缓存houseInfo已经有值了 |
|
|
|
//获取房屋房主信息,判断是否是房主
|
|
|
|
Result<IcHouseDTO> icHouseResult = govOrgOpenFeignClient.get(icUser.getHomeId()); |
|
|
|
if (!icHouseResult.success() || null == icHouseResult.getData()) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "获取房屋信息失败", "获取房屋信息失败"); |
|
|
|
} |
|
|
|
if (icUser.getIdCard().equals(icHouseResult.getData().getOwnerIdCard())) { |
|
|
|
resultDto.setIsOwner(NumConstant.ONE_STR); |
|
|
|
} else { |
|
|
|
resultDto.setIsOwner(NumConstant.ZERO_STR); |
|
|
|
}*/ |
|
|
|
if (icUser.getIdCard().equals(houseInfo.getOwnerIdCard())) { |
|
|
|
resultDto.setIsOwner(NumConstant.ONE_STR); |
|
|
|
} else { |
|
|
|