| | |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入houseRental") |
| | | public R update(@RequestBody HouseRentalEntity houseRental) { |
| | | houseRental.setUpdateTime(new Date()); |
| | | houseRental.setUpdateUser(AuthUtil.getUserId()); |
| | | return R.status(houseRentalService.updateById(houseRental)); |
| | | } |
| | |
| | | return R.data(houseRentalService.getStatistics(houseRental)); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getStatisticsCount") |
| | | public R getStatisticsCount(HouseRentalTenantVO houseRental){ |
| | | return R.data(houseRentalService.getStatisticsCount(houseRental)); |
| | | } |
| | | |
| | | /** |
| | | * 导出用户 |
| | | * 导出租赁信息 |
| | | */ |
| | | @GetMapping("export-house") |
| | | @ApiOperationSupport(order = 13) |
| | | @ApiOperation(value = "导出出租房屋", notes = "传入user") |
| | | public void exportUser(HouseRentalVO houseRentalVO, HttpServletResponse response) { |
| | | @GetMapping("export-houseRental") |
| | | public void exportHouseRental(HouseRentalTenantVO houseRentalVO, HttpServletResponse response) { |
| | | List<HouseRentalExcel> list = houseRentalService.export(houseRentalVO); |
| | | ExcelUtil.export(response, "房屋数据" + DateUtil.time(), "房屋数据表", list, HouseRentalExcel.class); |
| | | ExcelUtil.export(response, "出租屋数据" + DateUtil.time(), "出租屋数据表", list, HouseRentalExcel.class); |
| | | } |
| | | |
| | | |