linzhijie
2021-03-11 93af1c6ffb9ae0e894689ad3a37b548e57d54cff
src/main/java/com/ots/project/exam/controller/EntTestSendtaskMailController.java
@@ -1,4 +1,5 @@
package com.ots.project.exam.controller;
import java.util.List;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
@@ -18,13 +19,21 @@
import com.ots.framework.web.page.TableDataInfo;
import org.springframework.stereotype.Controller;
/**
 * 邮箱退信记录Controller
 *
 * @author ots
 * @date 2020-03-09
 */
@Controller
@RequestMapping("/exam/mail")
public class EntTestSendtaskMailController extends BaseController
{
    private String prefix = "exam/mail";
    @Autowired
    private IEntTestSendtaskMailService entTestSendtaskMailService;
    @RequiresPermissions("exam:mail:view")
    @GetMapping()
    public String mail()
@@ -32,6 +41,9 @@
        return prefix + "/mail";
    }
    
    /**
     * 查询邮箱退信记录列表
     */
    @RequiresPermissions("exam:mail:list")
    @PostMapping("/list")
    @ResponseBody
@@ -42,6 +54,9 @@
        return getDataTable(list);
    }
    
    /**
     * 导出邮箱退信记录列表
     */
    @RequiresPermissions("exam:mail:export")
    @PostMapping("/export")
    @ResponseBody
@@ -52,12 +67,18 @@
        return util.exportExcel(list, "mail");
    }
    
    /**
     * 新增邮箱退信记录
     */
    @GetMapping("/add")
    public String add()
    {
        return prefix + "/add";
    }
    
    /**
     * 新增保存邮箱退信记录
     */
    @RequiresPermissions("exam:mail:add")
    @Log(title = "邮箱退信记录", businessType = BusinessType.INSERT)
    @PostMapping("/add")
@@ -67,6 +88,9 @@
        return toAjax(entTestSendtaskMailService.insertEntTestSendtaskMail(entTestSendtaskMail));
    }
    
    /**
     * 修改邮箱退信记录
     */
    @GetMapping("/edit/{id}")
    public String edit(@PathVariable("id") Long id, ModelMap mmap)
    {
@@ -75,6 +99,9 @@
        return prefix + "/edit";
    }
    
    /**
     * 修改保存邮箱退信记录
     */
    @RequiresPermissions("exam:mail:edit")
    @Log(title = "邮箱退信记录", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
@@ -84,6 +111,9 @@
        return toAjax(entTestSendtaskMailService.updateEntTestSendtaskMail(entTestSendtaskMail));
    }
    
    /**
     * 删除邮箱退信记录
     */
    @RequiresPermissions("exam:mail:remove")
    @Log(title = "邮箱退信记录", businessType = BusinessType.DELETE)
    @PostMapping( "/remove")