liusheng
3 天以前 c80135e5c3f7bfab96ba558a910a06f1e587c53c
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyLibExceptionController.java
@@ -2,6 +2,7 @@
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -23,14 +24,13 @@
/**
 * 问卷异常Controller
 *
 *
 * @author ruoyi
 * @date 2023-03-02
 */
@RestController
@RequestMapping("/smartor/svyexception")
public class SvyLibExceptionController extends BaseController
{
public class SvyLibExceptionController extends BaseController {
    @Autowired
    private ISvyLibExceptionService svyLibExceptionService;
@@ -38,9 +38,8 @@
     * 查询问卷异常列表
     */
    //@PreAuthorize("@ss.hasPermi('smartor:svyexception:list')")
   @PostMapping("/list")
    public TableDataInfo list(@RequestBody SvyLibException svyLibException)
    {
    @PostMapping("list")
    public TableDataInfo list(@RequestBody SvyLibException svyLibException) {
        startPage();
        List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException);
        return getDataTable(list);
@@ -52,8 +51,7 @@
    //@PreAuthorize("@ss.hasPermi('smartor:svyexception:export')")
    @Log(title = "问卷异常", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, SvyLibException svyLibException)
    {
    public void export(HttpServletResponse response, SvyLibException svyLibException) {
        List<SvyLibException> list = svyLibExceptionService.selectSvyLibExceptionList(svyLibException);
        ExcelUtil<SvyLibException> util = new ExcelUtil<SvyLibException>(SvyLibException.class);
        util.exportExcel(response, list, "问卷异常数据");
@@ -64,8 +62,7 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:svyexception:query')")
    @GetMapping(value = "/{ecid}")
    public AjaxResult getInfo(@PathVariable("ecid") Long ecid)
    {
    public AjaxResult getInfo(@PathVariable("ecid") Long ecid) {
        return success(svyLibExceptionService.selectSvyLibExceptionByEcid(ecid));
    }
@@ -74,9 +71,9 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:svyexception:add')")
    @Log(title = "问卷异常", businessType = BusinessType.INSERT)
    @PostMapping("/add")
    public AjaxResult add(@RequestBody SvyLibException svyLibException)
    {
    public AjaxResult add(@RequestBody SvyLibException svyLibException) {
        return toAjax(svyLibExceptionService.insertSvyLibException(svyLibException));
    }
@@ -85,9 +82,9 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:svyexception:edit')")
    @Log(title = "问卷异常", businessType = BusinessType.UPDATE)
    @PostMapping("/edit")
    public AjaxResult edit(@RequestBody SvyLibException svyLibException)
    {
    public AjaxResult edit(@RequestBody SvyLibException svyLibException) {
        return toAjax(svyLibExceptionService.updateSvyLibException(svyLibException));
    }
@@ -96,9 +93,8 @@
     */
    //@PreAuthorize("@ss.hasPermi('smartor:svyexception:remove')")
    @Log(title = "问卷异常", businessType = BusinessType.DELETE)
   @GetMapping("/remove/{ecids}")
    public AjaxResult remove(@PathVariable Long[] ecids)
    {
    @GetMapping("/remove/{ecids}")
    public AjaxResult remove(@PathVariable Long[] ecids) {
        return toAjax(svyLibExceptionService.deleteSvyLibExceptionByEcids(ecids));
    }
}