liusheng
2024-05-28 500130efe30180fe635ba4482e097e848d37c7e3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaTargetController.java
@@ -10,7 +10,6 @@
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.smartor.domain.IvrLibaTarget;
import com.smartor.domain.IvrLibaTargetAssort;
import com.smartor.domain.IvrLibaTargetVO;
import com.smartor.service.IIvrLibaTargetService;
import io.swagger.annotations.Api;
@@ -61,13 +60,13 @@
    }
    /**
     * 获取指标信息通过targetID
     * 获取指标信息通过id
     */
    @ApiOperation("获取指标信息通过targetID")
    @ApiOperation("获取指标信息通过id")
    @PreAuthorize("@ss.hasPermi('system:target:query')")
    @GetMapping(value = "/getInfo/{targetID}")
    public AjaxResult getInfo(@PathVariable("targetID") Long targetID) {
        return success(ivrLibaTargetService.selectIvrLibaTargetByTargetID(targetID));
    @GetMapping(value = "/getInfo/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(ivrLibaTargetService.selectIvrLibaTargetByTargetID(id));
    }
    /**
@@ -85,7 +84,6 @@
     * 新增或修改指标信息
     */
    @ApiOperation("新增或修改指标信息")
    @PreAuthorize("@ss.hasPermi('system:target:edit')")
    @Log(title = "指标选项库", businessType = BusinessType.UPDATE)
    @PostMapping("/saveOrupdateIvrLibaTarget")
    public AjaxResult saveOrupdateIvrLibaTarget(@RequestBody IvrLibaTargetVO ivrLibaTargetVO) {
@@ -98,9 +96,9 @@
    @ApiOperation("删除指标")
    @PreAuthorize("@ss.hasPermi('system:target:remove')")
    @Log(title = "指标选项库", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{targetIDs}")
    public AjaxResult remove(@PathVariable Long[] targetIDs) {
        return toAjax(ivrLibaTargetService.deleteIvrLibaTargetByTargetIDs(targetIDs));
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(ivrLibaTargetService.deleteIvrLibaTargetByTargetIDs(ids));
    }
    /**
@@ -115,7 +113,9 @@
        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);
@@ -125,4 +125,14 @@
        return rspData;
    }
    /**
     * 指标测试问题匹配
     */
    @ApiOperation("指标测试问题匹配")
    @PostMapping("/targetQuesMate")
    public AjaxResult targetQuesMate(@RequestBody IvrLibaTargetVO ivrLibaTarget) {
        return success(ivrLibaTargetService.targetQuesMate(ivrLibaTarget));
    }
}