| | |
| | | |
| | | |
| | | @GetMapping("getHouseStatistics") |
| | | public R getHouseStatistics(@RequestParam("code") String code, @RequestParam("roleType") String roleType) { |
| | | Map<String, Object> result = houseService.getHouseStatistics(code, roleType); |
| | | public R getHouseStatistics(@RequestParam("code") String code, |
| | | @RequestParam("roleType") String roleType, |
| | | @RequestParam(value = "aoiCode", required = false) String aoiCode, |
| | | @RequestParam(value = "buildingCode", required = false) String buildingCode, |
| | | @RequestParam(value = "unitCode", required = false) String unitCode) { |
| | | Map<String, Object> result = houseService.getHouseStatistics(code, roleType, aoiCode, buildingCode, unitCode); |
| | | return R.data(result); |
| | | } |
| | | |
| | | /** |
| | | * 通过小区id查询小区的栋 |
| | | * |
| | | * @param districtCode |
| | | * @return |
| | | */ |
| | | @GetMapping("/getHouseBuilding") |
| | | @ApiOperation(value = "通过小区id查询小区的栋", notes = "传入小区id") |
| | | public R<List<String>> getHouseBuilding(@RequestParam("districtCode") String districtCode) { |
| | | List<String> detail = houseService.getHouseBuilding(districtCode); |
| | | return R.data(detail); |
| | | } |
| | | |
| | | /** |
| | | * 通过小区id查询小区的单元 |
| | | * |
| | | * @param districtCode |
| | | * @return |
| | | */ |
| | | @GetMapping("/getHouseUnit") |
| | | @ApiOperation(value = "通过小区id查询小区的单元", notes = "传入小区id") |
| | | public R<List<String>> getHouseUnit(@RequestParam("districtCode") String districtCode, @RequestParam("building") String building) { |
| | | List<String> detail = houseService.getHouseUnit(districtCode, building); |
| | | return R.data(detail); |
| | | } |
| | | |
| | | } |