|
|
@ -13,7 +13,9 @@ 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.feign.ResultDataResolver; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerOrgRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import com.epmet.commons.tools.redis.common.bean.AgencyInfoCache; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constant.CustomerGridConstant; |
|
|
@ -455,4 +457,16 @@ public class HouseServiceImpl implements HouseService, ResultDataResolver { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public HouseInfoDTO getHouseInfoDTO(String customerId, String houseId) { |
|
|
|
HouseInfoDTO houseInfo = icHouseRedis.getHouseInfo(houseId, customerId); |
|
|
|
if (null != houseInfo && StringUtils.isNotBlank(houseInfo.getAgencyId())) { |
|
|
|
AgencyInfoCache agencyInfoCache = CustomerOrgRedis.getAgencyInfo(houseInfo.getAgencyId()); |
|
|
|
houseInfo.setAgencyPathName(agencyInfoCache.getAllParentName().concat(StrConstant.HYPHEN).concat(agencyInfoCache.getOrganizationName())); |
|
|
|
} else { |
|
|
|
houseInfo.setAgencyPathName(StrConstant.EPMETY_STR); |
|
|
|
} |
|
|
|
return houseInfo; |
|
|
|
} |
|
|
|
} |
|
|
|