| | |
| | | } |
| | | |
| | | /** |
| | | * 出租屋 确认 |
| | | * @param houseRental |
| | | * @return |
| | | */ |
| | | @PostMapping("/confirmHouseRental") |
| | | public R confirmHouseRental(@RequestBody HouseRentalVO houseRental) { |
| | | return R.status(houseRentalService.confirmHouseRental(houseRental)); |
| | | } |
| | | |
| | | /** |
| | | * 出租屋 新增或修改 |
| | | */ |
| | | @PostMapping("/submit") |
| | |
| | | return R.status(houseRentalService.removeHouseRental(id)); |
| | | } |
| | | |
| | | /** |
| | | * 获取统计数据 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getStatistics") |
| | | public R getStatistics(){ |
| | | return R.data(houseRentalService.getStatistics()); |
| | | public R getStatistics(HouseRentalTenantVO houseRental){ |
| | | return R.data(houseRentalService.getStatistics(houseRental)); |
| | | } |
| | | |
| | | |