| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.annotation.ValueAuth; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | import com.ruoyi.manage.mapper.ClientSatisfactionAnalyseFileMapper; |
| | | import com.ruoyi.manage.pojo.ClientSatisfaction; |
| | | import com.ruoyi.manage.pojo.ClientSatisfactionAnalyseFile; |
| | | import com.ruoyi.manage.service.ClientSatisfactionService; |
| | | import com.ruoyi.manage.utils.JackSonUtil; |
| | | import com.ruoyi.manage.vo.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | |
| | | |
| | | /** |
| | | * 客户满意度调查列表 |
| | | * @param data |
| | | * @param |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | @ApiOperation(value = "客户满意度调查列表") |
| | | @PostMapping("/pageClientSatisfaction") |
| | | public Result<IPage<ClientSatisfaction>> pageClientSatisfaction(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | ClientSatisfaction clientSatisfaction = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ClientSatisfaction.class); |
| | | public Result<IPage<ClientSatisfaction>> pageClientSatisfaction(Page page,ClientSatisfaction clientSatisfaction) throws Exception { |
| | | return Result.success(clientSatisfactionService.pageClientSatisfaction(page, clientSatisfaction)); |
| | | } |
| | | |
| | |
| | | * 客户满意度调查新增 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | @ApiOperation(value = "客户满意度调查新增") |
| | | @PostMapping("/addClientSatisfaction") |
| | | public Result addClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | |
| | | * 客户满意度调查修改 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | @ApiOperation(value = "客户满意度调查新增") |
| | | @PostMapping("/updateClientSatisfaction") |
| | | public Result updateClientSatisfaction(@RequestBody ClientSatisfaction clientSatisfaction){ |
| | |
| | | * 客户满意度调查修改 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "客户满意度调查新增") |
| | | @GetMapping("/delClientSatisfaction") |
| | | public Result updateClientSatisfaction(Integer clientSatisfactionId){ |
| | |
| | | * @param response |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "客户满意导出") |
| | | @GetMapping("/exportWordClientSatisfaction") |
| | | public Result exportWordClientSatisfaction(Integer clientSatisfactionId, HttpServletResponse response){ |
| | |
| | | * @param clientSatisfaction 要修改客户满意度的状态对象 |
| | | * @param userId 修改人id |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "确认客户满意度") |
| | | @GetMapping("/confirmClientSatisfaction") |
| | | public void confirmClientSatisfaction(ClientSatisfaction clientSatisfaction, Integer userId){ |
| | |
| | | * @param file |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "新增户分析附件") |
| | | @PostMapping("/uploadAnalyseFile") |
| | | public Result<?> uploadAnalyseFile(MultipartFile file) { |
| | |
| | | * 查询户分析附件 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "查询户分析附件") |
| | | @PostMapping("/pageAnalyseFile") |
| | | public Result<IPage<ClientSatisfactionAnalyseFile>> pageAnalyseFile(@RequestBody Map<String, Object> data) throws Exception { |
| | |
| | | * 删除户分析附件 |
| | | * @return |
| | | */ |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "删除户分析附件") |
| | | @GetMapping("/delAnalyseFile") |
| | | public Result delAnalyseFile(Integer analyseFileId){ |