| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | | import lombok.SneakyThrows; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | /** |
| | | * 报案 |
| | | * |
| | | * @param AddReportDto 实体对象 |
| | | * @param addReportDto 实体对象 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping |
| | |
| | | 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(); |
| | | } |
| | | } |
| | | |