|
|
@ -10,6 +10,7 @@ import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerIcHouseRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.HouseInfoCache; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
@ -221,7 +222,13 @@ public class IcHouseServiceImpl extends BaseServiceImpl<IcHouseDao, IcHouseEntit |
|
|
|
categories.add(NumConstant.ZERO, categories.remove(a)); |
|
|
|
} |
|
|
|
dto.setCategoryList(categories); |
|
|
|
dto.setHouseName(CustomerIcHouseRedis.getHouseInfo(item.getCustomerId(), item.getId()).getHouseName()); |
|
|
|
HouseInfoCache houseInfo = CustomerIcHouseRedis.getHouseInfo(item.getCustomerId(), item.getId()); |
|
|
|
if (null != houseInfo){ |
|
|
|
StringBuffer str = new StringBuffer(); |
|
|
|
str.append(houseInfo.getBuildingName()).append(houseInfo.getUnitName()).append(houseInfo.getDoorName()); |
|
|
|
dto.setHouseName(str.toString()); |
|
|
|
} |
|
|
|
|
|
|
|
return dto; |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
} |
|
|
|