liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/IvrLibaTargetoptionController.java
@@ -1,5 +1,6 @@
package com.ruoyi.web.controller.smartor;
import com.ruoyi.common.annotation.AddOrgId;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
@@ -28,8 +29,7 @@
@Api(description = "指标选项库")
@RestController
@RequestMapping("/smartor/targetoption")
public class IvrLibaTargetoptionController extends BaseController
{
public class IvrLibaTargetoptionController extends BaseController {
    @Autowired
    private IIvrLibaTargetoptionService ivrLibaTargetoptionService;
@@ -38,10 +38,10 @@
     */
    @ApiOperation("查询指标选项库列表")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:list')")
    @PostMapping("/list")
    public TableDataInfo list(@RequestBody    IvrLibaTargetoption ivrLibaTargetoption)
    {
        PageUtils.startPageByPost(ivrLibaTargetoption.getPageNum(),ivrLibaTargetoption.getPageSize());
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("list")
    public TableDataInfo list(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) {
        PageUtils.startPageByPost(ivrLibaTargetoption.getPageNum(), ivrLibaTargetoption.getPageSize());
        List<IvrLibaTargetoption> list = ivrLibaTargetoptionService.selectIvrLibaTargetoptionList(ivrLibaTargetoption);
        return getDataTable(list);
    }
@@ -53,8 +53,7 @@
    //@PreAuthorize("@ss.hasPermi('system:targetoption:export')")
    @Log(title = "指标选项库", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption)
    {
    public void export(HttpServletResponse response, IvrLibaTargetoption ivrLibaTargetoption) {
        List<IvrLibaTargetoption> list = ivrLibaTargetoptionService.selectIvrLibaTargetoptionList(ivrLibaTargetoption);
        ExcelUtil<IvrLibaTargetoption> util = new ExcelUtil<IvrLibaTargetoption>(IvrLibaTargetoption.class);
        util.exportExcel(response, list, "指标选项库数据");
@@ -66,8 +65,7 @@
    @ApiOperation("获取指标选项库详细信息")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:query')")
    @GetMapping(value = "/getInfo/{targetoptionid}")
    public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid)
    {
    public AjaxResult getInfo(@PathVariable("targetoptionid") Long targetoptionid) {
        return success(ivrLibaTargetoptionService.selectIvrLibaTargetoptionByTargetoptionid(targetoptionid));
    }
@@ -77,9 +75,9 @@
    @ApiOperation("新增指标选项库")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:add')")
    @Log(title = "指标选项库", businessType = BusinessType.INSERT)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/add")
    public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption)
    {
    public AjaxResult add(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) {
        SysUser user = getLoginUser().getUser();
        ivrLibaTargetoption.setOrgid(user.getOrgid());
        return toAjax(ivrLibaTargetoptionService.insertIvrLibaTargetoption(ivrLibaTargetoption));
@@ -91,9 +89,9 @@
    @ApiOperation("修改指标选项库")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:edit')")
    @Log(title = "指标选项库", businessType = BusinessType.UPDATE)
    @AddOrgId(field = "orgid", paramIndex = 0, campusField = "campusid")
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption)
    {
    public AjaxResult edit(@RequestBody IvrLibaTargetoption ivrLibaTargetoption) {
        return toAjax(ivrLibaTargetoptionService.updateIvrLibaTargetoption(ivrLibaTargetoption));
    }
@@ -103,9 +101,8 @@
    @ApiOperation("删除指标选项库")
    //@PreAuthorize("@ss.hasPermi('system:targetoption:remove')")
    @Log(title = "指标选项库", businessType = BusinessType.DELETE)
   @GetMapping("/remove/{targetoptionids}")
    public AjaxResult remove(@PathVariable Long[] targetoptionids)
    {
    @GetMapping("/remove/{targetoptionids}")
    public AjaxResult remove(@PathVariable Long[] targetoptionids) {
        return toAjax(ivrLibaTargetoptionService.deleteIvrLibaTargetoptionByTargetoptionids(targetoptionids));
    }
}