| | |
| | | DistrictEntity detail = districtService.getOne(Condition.getQueryWrapper(district)); |
| | | return R.data(DistrictWrapper.build().entityVO(detail)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 小区表 自定义获取详情 |
| | | * @param district |
| | | * @return |
| | | */ |
| | | @GetMapping("/getDetail") |
| | | public R<DistrictVO> getDetail(DistrictVO district) { |
| | | return R.data(districtService.getDetail(district)); |
| | | } |
| | | |
| | | /** |
| | | * 小区表 分页 |
| | | */ |
| | |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(districtService.removeByIds(Func.toLongList(ids))); |
| | | return R.status(districtService.removeByIds(Func.toStrList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 获取小区树 |
| | | */ |
| | | @GetMapping("/getDistrictTree") |
| | | public R getDistrictTree(DistrictVO district) { |
| | | return R.data(districtService.getDistrictTree(district)); |
| | | } |
| | | |
| | | |