|
|
@ -43,13 +43,13 @@ public class AnnoBlocksSecondRelController { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 通过id查询地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个 |
|
|
|
* 通过id查询地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param housingEstatesId id |
|
|
|
* @param housingEstateId id |
|
|
|
* @return R |
|
|
|
* @return R |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ApiOperation(value = "通过id查询", notes = "通过id查询") |
|
|
|
@ApiOperation(value = "通过id查询", notes = "通过id查询") |
|
|
|
@GetMapping("/{housingEstatesId}") |
|
|
|
@GetMapping("/{housingEstateId}") |
|
|
|
public R getById(@PathVariable("housingEstatesId") Long housingEstatesId) { |
|
|
|
public R getById(@PathVariable("housingEstateId") Long housingEstateId) { |
|
|
|
return R.ok(annoBlocksSecondRelService.getById(housingEstatesId)); |
|
|
|
return R.ok(annoBlocksSecondRelService.getById(housingEstateId)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -81,13 +81,13 @@ public class AnnoBlocksSecondRelController { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 通过id删除地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个 |
|
|
|
* 通过id删除地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个 |
|
|
|
* |
|
|
|
* |
|
|
|
* @param housingEstatesId id |
|
|
|
* @param housingEstateId id |
|
|
|
* @return R |
|
|
|
* @return R |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ApiOperation(value = "通过id删除地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个", notes = "通过id删除地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个") |
|
|
|
@ApiOperation(value = "通过id删除地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个", notes = "通过id删除地块(公告)-楼盘副关联关系,主关联键已经写入楼盘业务表了,只有出现一对多的情况,即一个楼盘,跨越多个地块修建,才用这个") |
|
|
|
@DeleteMapping("/{housingEstatesId}") |
|
|
|
@DeleteMapping("/{housingEstateId}") |
|
|
|
@PreAuthorize("@pms.hasPermission('generator_annoblockssecondrel_del')") |
|
|
|
@PreAuthorize("@pms.hasPermission('generator_annoblockssecondrel_del')") |
|
|
|
public R removeById(@PathVariable Long housingEstatesId) { |
|
|
|
public R removeById(@PathVariable Long housingEstateId) { |
|
|
|
return R.ok(annoBlocksSecondRelService.removeById(housingEstatesId)); |
|
|
|
return R.ok(annoBlocksSecondRelService.removeById(housingEstateId)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|