|
|
@ -960,6 +960,9 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver { |
|
|
|
@Override |
|
|
|
public Result<IcHouseInfoResultDTO> getHouseInfoByCode(IcHouseInfoFormDTO formDTO) { |
|
|
|
IcHouseEntity house = icHouseDao.selectByHouseCode(formDTO.getHouseCode()); |
|
|
|
if(null == house){ |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "未查询到相关房屋","未查询到相关房屋"); |
|
|
|
} |
|
|
|
HouseInfoCache cache = CustomerIcHouseRedis.getHouseInfo(formDTO.getCustomerId(), house.getId()); |
|
|
|
IcHouseInfoResultDTO resut = ConvertUtils.sourceToTarget(cache, IcHouseInfoResultDTO.class); |
|
|
|
resut.setHouseId(cache.getHomeId()); |
|
|
|