|
|
|
@ -1,17 +1,11 @@
|
|
|
|
|
package com.air.housing.controller; |
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
|
import com.air.housing.dto.HousingDefine; |
|
|
|
|
import com.air.housing.entity.Format; |
|
|
|
|
import com.air.housing.entity.HousingEstates; |
|
|
|
|
import com.air.housing.service.FormatService; |
|
|
|
|
import com.air.housing.service.HousingEstatesService; |
|
|
|
|
import com.air.housing.vo.HousingEstatesDetail; |
|
|
|
|
import com.air.housing.vo.HousingEstatesName; |
|
|
|
|
import com.air.land.entity.LandListed; |
|
|
|
|
import com.air.land.service.LandListedService; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
|
import com.cinderella.framework.common.core.util.R; |
|
|
|
|
import com.cinderella.framework.common.data.mybatis.QueryPage; |
|
|
|
@ -36,10 +30,6 @@ public class HousingEstatesController {
|
|
|
|
|
|
|
|
|
|
private final HousingEstatesService housingEstatesService; |
|
|
|
|
|
|
|
|
|
private final FormatService formatService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final LandListedService landListedService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 分页查询 |
|
|
|
@ -73,7 +63,7 @@ public class HousingEstatesController {
|
|
|
|
|
* @param housingEstatesId id |
|
|
|
|
* @return R |
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "通过id查询", notes = "通过id查询") |
|
|
|
|
@ApiOperation(value = "通过id查询详情", notes = "通过id查询详情") |
|
|
|
|
@GetMapping("/{housingEstatesId}") |
|
|
|
|
public R getById(@PathVariable("housingEstatesId") Long housingEstatesId,Long blockId) { |
|
|
|
|
HousingEstatesDetail housingEstates = housingEstatesService.getHousingEstatesDetail(housingEstatesId,blockId); |
|
|
|
@ -88,7 +78,7 @@ public class HousingEstatesController {
|
|
|
|
|
*/ |
|
|
|
|
@ApiOperation(value = "新增楼盘(小区)", notes = "新增楼盘(小区)") |
|
|
|
|
@PostMapping |
|
|
|
|
@PreAuthorize("@pms.hasPermission('generator_housingestates_add')") |
|
|
|
|
// @PreAuthorize("@pms.hasPermission('generator_housingestates_add')")
|
|
|
|
|
public R save(@RequestBody HousingEstates housingEstates) { |
|
|
|
|
return R.ok(housingEstatesService.save(housingEstates)); |
|
|
|
|
} |
|
|
|
|