| | |
| | | public Result delAnalyseFile(Integer analyseFileId){ |
| | | return Result.success(clientSatisfactionAnalyseFileMapper.deleteById(analyseFileId)); |
| | | } |
| | | |
| | | /** |
| | | * 查询满意度附件 |
| | | */ |
| | | @Operation(summary = "查询满意度附件") |
| | | @GetMapping("/selectAttachments") |
| | | public Result selectAttachments(Integer clientSatisfactionId) { |
| | | return Result.success(clientSatisfactionService.selectAttachments(clientSatisfactionId)); |
| | | } |
| | | |
| | | /** |
| | | * 上传满意度附件 |
| | | */ |
| | | @Operation(summary = "上传满意度附件") |
| | | @PostMapping("/uploadAttachment") |
| | | public Result uploadAttachment(@RequestParam("clientSatisfactionId") Integer clientSatisfactionId, |
| | | @RequestParam("file") MultipartFile file) { |
| | | return Result.success(clientSatisfactionService.uploadAttachment(clientSatisfactionId, file)); |
| | | } |
| | | |
| | | /** |
| | | * 删除满意度附件 |
| | | */ |
| | | @Operation(summary = "删除满意度附件") |
| | | @DeleteMapping("/deleteAttachment") |
| | | public Result deleteAttachment(Long id) { |
| | | return Result.success(clientSatisfactionService.deleteAttachment(id)); |
| | | } |
| | | } |
| | | |