| | |
| | | @Operation(summary = "客户满意度调查新增") |
| | | @PostMapping("/addClientSatisfaction") |
| | | public Result addClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | | return Result.success(clientSatisfactionService.save(clientSatisfaction)); |
| | | clientSatisfactionService.save(clientSatisfaction); |
| | | // 返回保存后的记录(含自增id),前端据此上传新增时暂存的照片 |
| | | return Result.success(clientSatisfaction); |
| | | } |
| | | |
| | | /** |
| | |
| | | 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)); |
| | | } |
| | | } |
| | | |