12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- package com.example.controller.house;
- import com.example.common.PageVo;
- import com.example.common.Rsp;
- import com.example.pojo.dto.BuildingIdleStatDto;
- import com.example.pojo.dto.HouseAgeStatDto;
- import com.example.pojo.dto.ListBuildingDto;
- import com.example.pojo.dto.ListBuildingIdleDto;
- import com.example.pojo.dto.ListSiteNameDto;
- import com.example.pojo.dto.ListSiteNumDto;
- import com.example.pojo.vo.BuildingIdleStatVo;
- import com.example.pojo.vo.HouseAgeStatVo;
- import com.example.pojo.vo.ListBuildingIdleVo;
- import com.example.pojo.vo.ListBuildingVo;
- import com.example.service.house.HouseBuildManageDetailsService;
- import io.swagger.v3.oas.annotations.Operation;
- import io.swagger.v3.oas.annotations.tags.Tag;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import javax.validation.Valid;
- @Tag(name = "不动产建筑")
- @Slf4j
- @RequestMapping("/house-car/house/dist/api/WzBuildManageDetails")
- @RestController
- public class HouseBuildManageDetailsController {
- private final HouseBuildManageDetailsService houseBuildManageDetailsService;
- public HouseBuildManageDetailsController(HouseBuildManageDetailsService houseBuildManageDetailsService) {
- this.houseBuildManageDetailsService = houseBuildManageDetailsService;
- }
- @Operation(summary = "空置1000平米以上建筑")
- @PostMapping("/ideList")
- public Rsp<PageVo<ListBuildingIdleVo>> ideList(@Valid @RequestBody ListBuildingIdleDto dto) {
- return houseBuildManageDetailsService.ideList(dto);
- }
- @Operation(summary = "空置1000平米以上建筑导出")
- @GetMapping("/ideListExport")
- public void ideListExport(@Valid ListBuildingIdleDto.ListBuildingIdleMapDTO dto) {
- houseBuildManageDetailsService.ideListExport(dto);
- }
- @Operation(summary = "查询局址别名列表")
- @PostMapping("/getBuildingNameAlias")
- public Rsp<PageVo<String>> listSiteName(@RequestBody ListSiteNameDto dto) {
- return houseBuildManageDetailsService.listSiteName(dto);
- }
- @Operation(summary = "查询局址编号列表")
- @PostMapping("/getBuildingNameCode")
- public Rsp<PageVo<String>> listSiteNum(@RequestBody ListSiteNumDto dto) {
- return houseBuildManageDetailsService.listSiteNum(dto);
- }
- @Operation(summary = "查询房产记录")
- @PostMapping("/queryHouseDetail")
- public Rsp<PageVo<ListBuildingVo>> listBuilding(@Valid @RequestBody ListBuildingDto dto) {
- return houseBuildManageDetailsService.listBuilding(dto);
- }
- @Operation(summary = "房产记录导出")
- @GetMapping("/queryHouseDetailExport")
- public void listBuildingExport(@Valid ListBuildingDto.ListBuildingMapDTO dto) {
- houseBuildManageDetailsService.listBuildingExport(dto);
- }
- @Operation(summary = "房龄统计")
- @PostMapping("/queryHouseYear")
- public Rsp<PageVo<HouseAgeStatVo>> houseAgeStat(@Valid @RequestBody HouseAgeStatDto dto) {
- return houseBuildManageDetailsService.houseAgeStat(dto);
- }
- @Operation(summary = "房龄统计导出")
- @GetMapping("/queryHouseYearExport")
- public void queryHouseYearExport(@Valid HouseAgeStatDto.HouseAgeStatMapDTO dto) {
- houseBuildManageDetailsService.queryHouseYearExport(dto);
- }
- @Operation(summary = "闲置管理")
- @PostMapping("/list")
- public Rsp<PageVo<BuildingIdleStatVo>> buildingIdleStat(@Valid @RequestBody BuildingIdleStatDto dto) {
- return houseBuildManageDetailsService.buildingIdleStat(dto);
- }
- @Operation(summary = "闲置管理导出")
- @GetMapping("/buildingIdleStatExport")
- public void buildingIdleStatExport(@Valid BuildingIdleStatDto.BuildingIdleStatMapDTO dto) {
- houseBuildManageDetailsService.buildingIdleStatExport(dto);
- }
- }
|