| | |
| | | |
| | | @GetMapping("/export") |
| | | public ResponseEntity<byte[]> exportResults(@RequestParam("period") String period, |
| | | @RequestParam(value = "reportType", defaultValue = "H2032") String reportType) throws Exception { |
| | | byte[] bytes = auditService.exportResults(period, reportType); |
| | | @RequestParam(value = "reportType", defaultValue = "H2032") String reportType, |
| | | @RequestParam(value = "onlyVerify", defaultValue = "true") boolean onlyVerify, |
| | | @RequestParam(value = "status", defaultValue = "all") String status) throws Exception { |
| | | byte[] bytes = auditService.exportResults(period, reportType, onlyVerify, status); |
| | | String name = java.net.URLEncoder.encode("审核结果_" + period + ".xlsx", "UTF-8"); |
| | | return ResponseEntity.ok() |
| | | .header("Content-Disposition", "attachment; filename*=UTF-8''" + name) |