| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | |
| | | |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | @ApiOperationSupport(order = 2) |
| | | @GetMapping("/downloadById") |
| | | @ApiOperation(value = "根据ID下载", notes = "根据ID下载") |
| | | public void downloadById(@RequestParam(value = "id", required = true) int id, HttpServletResponse res) { |
| | | xlsReportService.downloadById(id, res); |
| | | } |
| | | } |