| | |
| | | @PostMapping |
| | | @ApiOperation(value = "报案") |
| | | public R<Boolean> insert(@RequestBody AddReportDto addReportDto) { |
| | | |
| | | return R.ok(reportService.addReport(addReportDto)); |
| | | } |
| | | |
| | |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | public void exportReport(@RequestParam(value = "id") Integer id, HttpServletResponse response) { |
| | | reportService.exportReporter(id, response); |
| | | } |
| | | |
| | | @ApiOperation(httpMethod = "POST", value = "案件台-报案人员-报案人员导入") |
| | | @PostMapping("/upload") |
| | | @ApiResponse(message = "执行成功", code = 200) |
| | | @SneakyThrows |
| | | public R upload(@RequestParam(value = "multipartFile") MultipartFile multipartFile) { |
| | | reportService.loadFile(multipartFile); |
| | | return R.ok(); |
| | | } |
| | | } |
| | | |