16 changed files with 204 additions and 60 deletions
@ -0,0 +1,20 @@
|
||||
package com.air.housing.dto; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
|
||||
/** |
||||
* @ClassName BlockListDto |
||||
* @Author Lenovo 102306 |
||||
* @Date 2021/6/9 10:40 |
||||
*/ |
||||
public class BlockListDto { |
||||
|
||||
@ApiModelProperty(value = "楼盘id") |
||||
Long housingEstatesId; |
||||
|
||||
@ApiModelProperty(value = "大业态") |
||||
String largeFormat; |
||||
|
||||
@ApiModelProperty(value = "小业态") |
||||
String format; |
||||
} |
@ -1,4 +1,4 @@
|
||||
package com.air.entity; |
||||
package com.air.housing.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
@ -0,0 +1,30 @@
|
||||
package com.air.housing.mapper; |
||||
|
||||
import com.air.housing.dto.BlockListDto; |
||||
import com.air.housing.entity.Blocks; |
||||
import com.air.housing.vo.HousingEstatesName; |
||||
import com.air.sysMessage.entity.SysMessage; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springframework.security.core.parameters.P; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 楼栋信息 |
||||
* |
||||
* @author peihao |
||||
* @date 2021-05-18 09:39:45 |
||||
*/ |
||||
public interface BlocksMapper extends BaseMapper<Blocks> { |
||||
|
||||
/** |
||||
* 根据楼盘id,大业态,小业态筛选楼栋信息 |
||||
* @param page |
||||
* @param blockListDto |
||||
* @return |
||||
*/ |
||||
Page<Blocks> getBlocksPageByHousingEstatesId(Page page, @Param("Blocks")BlockListDto blockListDto); |
||||
} |
@ -0,0 +1,22 @@
|
||||
package com.air.housing.service; |
||||
|
||||
import com.air.housing.dto.BlockListDto; |
||||
import com.air.housing.entity.Blocks; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
||||
/** |
||||
* 楼栋信息 |
||||
* |
||||
* @author peihao |
||||
* @date 2021-05-18 09:39:45 |
||||
*/ |
||||
public interface BlocksService extends IService<Blocks> { |
||||
/** |
||||
* 根据楼盘id,大业态,小业态查询楼栋分页信息 |
||||
* @param blockListDto |
||||
* @return |
||||
*/ |
||||
Page<Blocks> getBlocksPageByHousingEstatesId(Page page,BlockListDto blockListDto); |
||||
|
||||
} |
@ -0,0 +1,29 @@
|
||||
package com.air.housing.service.impl; |
||||
|
||||
import com.air.housing.dto.BlockListDto; |
||||
import com.air.housing.entity.Blocks; |
||||
import com.air.housing.mapper.BlocksMapper; |
||||
import com.air.housing.service.BlocksService; |
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import javax.annotation.Resource; |
||||
|
||||
/** |
||||
* 楼栋信息 |
||||
* |
||||
* @author peihao |
||||
* @date 2021-05-18 09:39:45 |
||||
*/ |
||||
@Service |
||||
public class BlocksServiceImpl extends ServiceImpl<BlocksMapper, Blocks> implements BlocksService { |
||||
|
||||
@Resource |
||||
private BlocksMapper blocksMapper; |
||||
@Override |
||||
public Page<Blocks> getBlocksPageByHousingEstatesId(Page page,BlockListDto blockListDto) { |
||||
|
||||
return null; |
||||
} |
||||
} |
@ -0,0 +1,23 @@
|
||||
package com.air.housing.vo; |
||||
|
||||
import com.air.housing.entity.Format; |
||||
import com.air.housing.entity.HousingEstates; |
||||
import com.air.land.entity.LandListed; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
/** |
||||
* @ClassName HousingEstatesDetail |
||||
* @Author Lenovo 102306 |
||||
* @Date 2021/6/9 9:44 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode |
||||
public class HousingEstatesDetail { |
||||
|
||||
HousingEstates housingEstates; |
||||
|
||||
Format format; |
||||
|
||||
LandListed landListed; |
||||
} |
@ -1,14 +0,0 @@
|
||||
package com.air.mapper; |
||||
|
||||
import com.air.entity.Blocks; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
||||
/** |
||||
* 楼栋信息 |
||||
* |
||||
* @author peihao |
||||
* @date 2021-05-18 09:39:45 |
||||
*/ |
||||
public interface BlocksMapper extends BaseMapper<Blocks> { |
||||
|
||||
} |
@ -1,14 +0,0 @@
|
||||
package com.air.service; |
||||
|
||||
import com.air.entity.Blocks; |
||||
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
||||
/** |
||||
* 楼栋信息 |
||||
* |
||||
* @author peihao |
||||
* @date 2021-05-18 09:39:45 |
||||
*/ |
||||
public interface BlocksService extends IService<Blocks> { |
||||
|
||||
} |
@ -1,18 +0,0 @@
|
||||
package com.air.service.impl; |
||||
|
||||
import com.air.entity.Blocks; |
||||
import com.air.mapper.BlocksMapper; |
||||
import com.air.service.BlocksService; |
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* 楼栋信息 |
||||
* |
||||
* @author peihao |
||||
* @date 2021-05-18 09:39:45 |
||||
*/ |
||||
@Service |
||||
public class BlocksServiceImpl extends ServiceImpl<BlocksMapper, Blocks> implements BlocksService { |
||||
|
||||
} |
Loading…
Reference in new issue