liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaTargetController.java
@@ -38,7 +38,7 @@
     * 查询指标选项库列表
     */
    @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());
@@ -49,7 +49,7 @@
    /**
     * 导出指标列表
     */
    @PreAuthorize("@ss.hasPermi('system:target:export')")
    //@PreAuthorize("@ss.hasPermi('system:target:export')")
    @Log(title = "指标库", businessType = BusinessType.EXPORT)
    @ApiOperation("导出指标列表")
    @PostMapping("/export")
@@ -63,7 +63,7 @@
     * 获取指标信息通过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));
@@ -72,7 +72,7 @@
    /**
     * 新增指标
     */
    @PreAuthorize("@ss.hasPermi('system:target:add')")
    //@PreAuthorize("@ss.hasPermi('system:target:add')")
    @Log(title = "指标选项库", businessType = BusinessType.INSERT)
    @ApiOperation("新增指标(这个接口没啥用了,用”新增或修改指标信息“这个接口好一些)")
    @PostMapping("/add")
@@ -94,7 +94,7 @@
     * 删除指标
     */
    @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) {
@@ -105,7 +105,7 @@
     * 查询指标选项库列表
     */
    @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());
@@ -125,4 +125,14 @@
        return rspData;
    }
    /**
     * 指标测试问题匹配
     */
    @ApiOperation("指标测试问题匹配")
    @PostMapping("/targetQuesMate")
    public AjaxResult targetQuesMate(@RequestBody IvrLibaTargetVO ivrLibaTarget) {
        return success(ivrLibaTargetService.targetQuesMate(ivrLibaTarget));
    }
}