| | |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.IvrLibaScript; |
| | | import com.smartor.domain.IvrLibaScriptVO; |
| | |
| | | * 查询问题话术库列表 |
| | | */ |
| | | @ApiOperation("查询问题话术库列表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaScript ivrLibaScript) { |
| | | startPage(); |
| | | PageUtils.startPageByPost(ivrLibaScript.getPageNum(),ivrLibaScript.getPageSize()); |
| | | List<IvrLibaScript> list = ivrLibaScriptService.selectIvrLibaScriptList(ivrLibaScript); |
| | | return getDataTable(list); |
| | | } |
| | |
| | | * 导出问题话术库列表 |
| | | */ |
| | | @ApiOperation("导出问题话术库列表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "问题话术库", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrLibaScript ivrLibaScript) { |
| | |
| | | * 获取问题话术库详细信息 |
| | | */ |
| | | @ApiOperation("获取问题话术库详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/getInfo/{questionid}") |
| | | public AjaxResult getInfo(@PathVariable("questionid") String questionid) { |
| | | return success(ivrLibaScriptService.selectIvrLibaScriptByQuestionid(questionid)); |
| | |
| | | * 新增问题话术库 |
| | | */ |
| | | @ApiOperation("新增问题话术库") |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @Log(title = "问题话术库", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrLibaScript ivrLibaScript) { |
| | |
| | | * 修改问题话术库 |
| | | */ |
| | | @ApiOperation("修改问题话术库") |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @Log(title = "问题话术库", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrLibaScript ivrLibaScript) { |
| | |
| | | * 删除问题话术库 |
| | | */ |
| | | @ApiOperation("删除问题话术库") |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @Log(title = "问题话术库", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{questionids}") |
| | | public AjaxResult remove(@PathVariable String[] questionids) { |
| | |
| | | * 查询问题话术详情根据条件 |
| | | */ |
| | | @ApiOperation("查询问题话术详情根据条件") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody IvrLibaScriptVO ivrLibaScriptVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaScriptVO)) { |
| | |
| | | * 新增或修改问题详情 |
| | | */ |
| | | @ApiOperation("新增或修改问题详情") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/saveOrUpdateScript") |
| | | public AjaxResult saveOrUpdateScript(@RequestBody IvrLibaScriptVO ivrLibaScriptVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaScriptVO)) { |