|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.air.housing.service.impl; |
|
|
|
package com.air.housing.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.air.enums.BlocksOriginStatusEnum; |
|
|
|
import com.air.enums.BlocksOriginStatusEnum; |
|
|
|
import com.air.housing.dto.HousingDefine; |
|
|
|
import com.air.housing.dto.HousingDefine; |
|
|
|
import com.air.housing.entity.Blocks; |
|
|
|
import com.air.housing.entity.Blocks; |
|
|
@ -21,6 +22,7 @@ import com.air.origin.entity.HousesOrigin; |
|
|
|
import com.air.origin.service.BlocksOriginService; |
|
|
|
import com.air.origin.service.BlocksOriginService; |
|
|
|
import com.air.origin.service.HousesOriginService; |
|
|
|
import com.air.origin.service.HousesOriginService; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.cinderella.framework.common.core.exception.BusinessException; |
|
|
|
import com.cinderella.framework.common.core.exception.BusinessException; |
|
|
@ -107,7 +109,7 @@ public class HousingEstatesServiceImpl extends ServiceImpl<HousingEstatesMapper, |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public HousingEstatesDetail getHousingEstatesDetail(Long housingEstatesId, Long blockId) { |
|
|
|
public HousingEstatesDetail getHousingEstatesDetail(Long housingEstatesId, Long blockId) { |
|
|
|
HousingEstates housingEstates = baseMapper.selectById(housingEstatesId); |
|
|
|
HousingEstates housingEstates = baseMapper.selectById(housingEstatesId); |
|
|
|
LandListed landListed = landListedService.getOne(Wrappers.<LandListed>lambdaQuery().eq(LandListed::getAnnoId,housingEstates.getAnnoId())); |
|
|
|
LandListed landListed = landListedService.getOne(Wrappers.<LandListed>lambdaQuery().eq(StringUtils.isNotBlank(String.valueOf(housingEstates.getAnnoId())),LandListed::getAnnoId,housingEstates.getAnnoId())); |
|
|
|
HousingEstatesDetail detail = new HousingEstatesDetail(); |
|
|
|
HousingEstatesDetail detail = new HousingEstatesDetail(); |
|
|
|
detail.setHousingEstates(housingEstates); |
|
|
|
detail.setHousingEstates(housingEstates); |
|
|
|
detail.setLandListed(landListed); |
|
|
|
detail.setLandListed(landListed); |
|
|
|