wzp
2021-04-06 5e873863bc7324894c89b0a0fc77a6202c91cd64
src/main/java/com/ots/project/exam/controller/EntOperLogController.java
@@ -1,5 +1,4 @@
package com.ots.project.exam.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
@@ -19,21 +18,13 @@
import com.ots.framework.web.page.TableDataInfo;
import org.springframework.stereotype.Controller;
/**
 * 使用次数操作记录Controller
 *
 * @author ots
 * @date 2020-01-19
 */
@Controller
@RequestMapping("/exam/entOperLog")
public class EntOperLogController extends BaseController
{
    private String prefix = "exam/entOperLog";
    @Autowired
    private IEntOperLogService entOperLogService;
    @RequiresPermissions("exam:entOperLog:view")
    @GetMapping()
    public String entOperLog()
@@ -41,9 +32,6 @@
        return prefix + "/entOperLog";
    }
    /**
     * 查询使用次数操作记录列表
     */
    @RequiresPermissions("exam:entOperLog:list")
    @PostMapping("/list")
    @ResponseBody
@@ -54,9 +42,6 @@
        return getDataTable(list);
    }
    /**
     * 导出使用次数操作记录列表
     */
    @RequiresPermissions("exam:entOperLog:export")
    @PostMapping("/export")
    @ResponseBody
@@ -67,18 +52,12 @@
        return util.exportExcel(list, "entOperLog");
    }
    /**
     * 新增使用次数操作记录
     */
    @GetMapping("/add")
    public String add()
    {
        return prefix + "/add";
    }
    /**
     * 新增保存使用次数操作记录
     */
    @RequiresPermissions("exam:entOperLog:add")
    @Log(title = "使用次数操作记录", businessType = BusinessType.INSERT)
    @PostMapping("/add")
@@ -88,9 +67,6 @@
        return toAjax(entOperLogService.insertEntOperLog(entOperLog));
    }
    /**
     * 修改使用次数操作记录
     */
    @GetMapping("/edit/{logId}")
    public String edit(@PathVariable("logId") Long logId, ModelMap mmap)
    {
@@ -99,9 +75,6 @@
        return prefix + "/edit";
    }
    /**
     * 修改保存使用次数操作记录
     */
    @RequiresPermissions("exam:entOperLog:edit")
    @Log(title = "使用次数操作记录", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
@@ -111,9 +84,6 @@
        return toAjax(entOperLogService.updateEntOperLog(entOperLog));
    }
    /**
     * 删除使用次数操作记录
     */
    @RequiresPermissions("exam:entOperLog:remove")
    @Log(title = "使用次数操作记录", businessType = BusinessType.DELETE)
    @PostMapping( "/remove")