| | |
| | | return calculateReportService.backfill(form); |
| | | } |
| | | |
| | | @GetMapping("/{contractId}/{whichYear}") |
| | | @GetMapping("/{contractId}/{whichYear}/{whichMoth}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("@ss.hasPermi('system:calculate:report:detail')") |
| | | public Result detail(@PathVariable("contractId") Integer contractId,@PathVariable("whichYear") Integer whichYear) { |
| | | public Result detail(@PathVariable("contractId") Integer contractId,@PathVariable("whichYear") Integer whichYear,@PathVariable("whichMoth") Integer whichMoth) { |
| | | CalculateReportQuery query = new CalculateReportQuery(); |
| | | query.setContractId(contractId); |
| | | query.setWhichYear(whichYear); |
| | | query.setWhichMonth(whichMoth); |
| | | return calculateReportService.detail(query); |
| | | } |
| | | |
| | |
| | | @PostMapping("/export") |
| | | @ApiOperation(value = "导出", notes = "导出") |
| | | @PreAuthorize("@ss.hasPermi('system:calculate:report:export')") |
| | | public void export(Integer whichYear,Integer whichMonth,Integer contractId, HttpServletResponse response) { |
| | | calculateReportService.export(whichYear,whichMonth,contractId, response); |
| | | public void export(Integer whichYear,Integer whichMonth,Integer whichDay,Integer contractId, HttpServletResponse response) { |
| | | calculateReportService.export(whichYear,whichMonth,whichDay,contractId, response); |
| | | } |
| | | |
| | | } |