| | |
| | | return Result.success(dataReportingService.getDataList()); |
| | | } |
| | | |
| | | @ValueAuth |
| | | @ApiOperation(value = "导入") |
| | | @ApiOperation(value = "导入数据上报列表") |
| | | @PostMapping("/inputCsv") |
| | | public Result<?> inputCsv(@RequestParam("file") MultipartFile file) throws IOException { |
| | | CsvReader reader = CsvUtil.getReader(); |
| | |
| | | public Result downDataReportingFile(@RequestBody Map<String, Object> data) { |
| | | Page page = JSON.parseObject(JSON.toJSONString(data.get("page")), Page.class); |
| | | DataReportingPageDto dataReportingPageDto = JSON.parseObject(JSON.toJSONString(data.get("entity")), DataReportingPageDto.class); |
| | | return Result.success(dataReportingService.downDataReportingFile(page, dataReportingPageDto)); |
| | | return Result.success("导出成功", dataReportingService.downDataReportingFile(page, dataReportingPageDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出项目数据统计列表") |
| | | @PostMapping("/downProductCountFile") |
| | | public Result downProductCountFile(@RequestBody Map<String, Object> data) { |
| | | Page page = JSON.parseObject(JSON.toJSONString(data.get("page")), Page.class); |
| | | ProductCountDto productCountDto = JSON.parseObject(JSON.toJSONString(data.get("entity")), ProductCountDto.class); |
| | | return Result.success("导出成功", dataReportingService.downProductCountFile(page, productCountDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出员工数据统计列表") |
| | | @PostMapping("/downRegistrantCountFile") |
| | | public Result downRegistrantCountFile(@RequestBody Map<String, Object> data) { |
| | | Page page = JSON.parseObject(JSON.toJSONString(data.get("page")), Page.class); |
| | | RegistrantCountDto registrantCountDto = JSON.parseObject(JSON.toJSONString(data.get("entity")), RegistrantCountDto.class); |
| | | return Result.success("导出成功", dataReportingService.downRegistrantCountFile(page, registrantCountDto)); |
| | | } |
| | | |
| | | } |