| | |
| | | * 查询指标选项库列表 |
| | | */ |
| | | @ApiOperation("查询指标列表") |
| | | @PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrLibaTarget ivrLibaTarget) { |
| | | PageUtils.startPageByPost(ivrLibaTarget.getPageNum(), ivrLibaTarget.getPageSize()); |
| | |
| | | /** |
| | | * 导出指标列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:export')") |
| | | @Log(title = "指标库", businessType = BusinessType.EXPORT) |
| | | @ApiOperation("导出指标列表") |
| | | @PostMapping("/export") |
| | |
| | | * 获取指标信息通过id |
| | | */ |
| | | @ApiOperation("获取指标信息通过id") |
| | | @PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrLibaTargetService.selectIvrLibaTargetByTargetID(id)); |
| | |
| | | /** |
| | | * 新增指标 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:add')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.INSERT) |
| | | @ApiOperation("新增指标(这个接口没啥用了,用”新增或修改指标信息“这个接口好一些)") |
| | | @PostMapping("/add") |
| | |
| | | * 删除指标 |
| | | */ |
| | | @ApiOperation("删除指标") |
| | | @PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:remove')") |
| | | @Log(title = "指标选项库", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | |
| | | * 查询指标选项库列表 |
| | | */ |
| | | @ApiOperation("查询指标和关联的指标选项") |
| | | @PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:target:list')") |
| | | @PostMapping("/targetInfo") |
| | | public TableDataInfo targetInfo(@RequestBody IvrLibaTarget ivrLibaTarget) { |
| | | PageUtils.startPageByPost(ivrLibaTarget.getPageNum(), ivrLibaTarget.getPageSize()); |
| | |
| | | List<IvrLibaTargetVO> ivrLibaTargetVOS = ivrLibaTargetService.targetInfo(ivrLibaTarget); |
| | | |
| | | //用于分页 |
| | | List<IvrLibaTarget> ivrLibaTargets = ivrLibaTargetService.selectIvrLibaTargetList(null); |
| | | ivrLibaTarget.setPageNum(null); |
| | | ivrLibaTarget.setPageSize(null); |
| | | List<IvrLibaTarget> ivrLibaTargets = ivrLibaTargetService.selectIvrLibaTargetList(ivrLibaTarget); |
| | | //分页 |
| | | TableDataInfo rspData = new TableDataInfo(); |
| | | rspData.setCode(HttpStatus.SUCCESS); |
| | |
| | | |
| | | return rspData; |
| | | } |
| | | |
| | | /** |
| | | * 指标测试问题匹配 |
| | | */ |
| | | @ApiOperation("指标测试问题匹配") |
| | | @PostMapping("/targetQuesMate") |
| | | public AjaxResult targetQuesMate(@RequestBody IvrLibaTargetVO ivrLibaTarget) { |
| | | return success(ivrLibaTargetService.targetQuesMate(ivrLibaTarget)); |
| | | } |
| | | |
| | | } |