HouseBuildManageDetailsController.java 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. package com.example.controller.house;
  2. import com.example.common.PageVo;
  3. import com.example.common.Rsp;
  4. import com.example.pojo.dto.BuildingIdleStatDto;
  5. import com.example.pojo.dto.HouseAgeStatDto;
  6. import com.example.pojo.dto.ListBuildingDto;
  7. import com.example.pojo.dto.ListBuildingIdleDto;
  8. import com.example.pojo.dto.ListSiteNameDto;
  9. import com.example.pojo.dto.ListSiteNumDto;
  10. import com.example.pojo.vo.BuildingIdleStatVo;
  11. import com.example.pojo.vo.HouseAgeStatVo;
  12. import com.example.pojo.vo.ListBuildingIdleVo;
  13. import com.example.pojo.vo.ListBuildingVo;
  14. import com.example.service.house.HouseBuildManageDetailsService;
  15. import io.swagger.v3.oas.annotations.Operation;
  16. import io.swagger.v3.oas.annotations.tags.Tag;
  17. import lombok.extern.slf4j.Slf4j;
  18. import org.springframework.web.bind.annotation.GetMapping;
  19. import org.springframework.web.bind.annotation.PostMapping;
  20. import org.springframework.web.bind.annotation.RequestBody;
  21. import org.springframework.web.bind.annotation.RequestMapping;
  22. import org.springframework.web.bind.annotation.RestController;
  23. import javax.validation.Valid;
  24. @Tag(name = "不动产建筑")
  25. @Slf4j
  26. @RequestMapping("/house-car/house/dist/api/WzBuildManageDetails")
  27. @RestController
  28. public class HouseBuildManageDetailsController {
  29. private final HouseBuildManageDetailsService houseBuildManageDetailsService;
  30. public HouseBuildManageDetailsController(HouseBuildManageDetailsService houseBuildManageDetailsService) {
  31. this.houseBuildManageDetailsService = houseBuildManageDetailsService;
  32. }
  33. @Operation(summary = "空置1000平米以上建筑")
  34. @PostMapping("/ideList")
  35. public Rsp<PageVo<ListBuildingIdleVo>> ideList(@Valid @RequestBody ListBuildingIdleDto dto) {
  36. return houseBuildManageDetailsService.ideList(dto);
  37. }
  38. @Operation(summary = "空置1000平米以上建筑导出")
  39. @GetMapping("/ideListExport")
  40. public void ideListExport(@Valid ListBuildingIdleDto.ListBuildingIdleMapDTO dto) {
  41. houseBuildManageDetailsService.ideListExport(dto);
  42. }
  43. @Operation(summary = "查询局址别名列表")
  44. @PostMapping("/getBuildingNameAlias")
  45. public Rsp<PageVo<String>> listSiteName(@RequestBody ListSiteNameDto dto) {
  46. return houseBuildManageDetailsService.listSiteName(dto);
  47. }
  48. @Operation(summary = "查询局址编号列表")
  49. @PostMapping("/getBuildingNameCode")
  50. public Rsp<PageVo<String>> listSiteNum(@RequestBody ListSiteNumDto dto) {
  51. return houseBuildManageDetailsService.listSiteNum(dto);
  52. }
  53. @Operation(summary = "查询房产记录")
  54. @PostMapping("/queryHouseDetail")
  55. public Rsp<PageVo<ListBuildingVo>> listBuilding(@Valid @RequestBody ListBuildingDto dto) {
  56. return houseBuildManageDetailsService.listBuilding(dto);
  57. }
  58. @Operation(summary = "房产记录导出")
  59. @GetMapping("/queryHouseDetailExport")
  60. public void listBuildingExport(@Valid ListBuildingDto.ListBuildingMapDTO dto) {
  61. houseBuildManageDetailsService.listBuildingExport(dto);
  62. }
  63. @Operation(summary = "房龄统计")
  64. @PostMapping("/queryHouseYear")
  65. public Rsp<PageVo<HouseAgeStatVo>> houseAgeStat(@Valid @RequestBody HouseAgeStatDto dto) {
  66. return houseBuildManageDetailsService.houseAgeStat(dto);
  67. }
  68. @Operation(summary = "房龄统计导出")
  69. @GetMapping("/queryHouseYearExport")
  70. public void queryHouseYearExport(@Valid HouseAgeStatDto.HouseAgeStatMapDTO dto) {
  71. houseBuildManageDetailsService.queryHouseYearExport(dto);
  72. }
  73. @Operation(summary = "闲置管理")
  74. @PostMapping("/list")
  75. public Rsp<PageVo<BuildingIdleStatVo>> buildingIdleStat(@Valid @RequestBody BuildingIdleStatDto dto) {
  76. return houseBuildManageDetailsService.buildingIdleStat(dto);
  77. }
  78. @Operation(summary = "闲置管理导出")
  79. @GetMapping("/buildingIdleStatExport")
  80. public void buildingIdleStatExport(@Valid BuildingIdleStatDto.BuildingIdleStatMapDTO dto) {
  81. houseBuildManageDetailsService.buildingIdleStatExport(dto);
  82. }
  83. }