Althars123 4 years ago
parent
commit
8916e72925

+ 5 - 17
zzjs-admin/src/main/java/com/miaxis/app/controller/question/QuestionErrorController.java

@@ -34,7 +34,7 @@ public class QuestionErrorController extends BaseController{
     /**
      * 查询错题列表
      */
-    @PreAuthorize("@ss.hasPermi('question:error:list')")
+//    @PreAuthorize("@ss.hasPermi('question:error:list')")
     @GetMapping("/list")
     @ApiOperation("查询错题列表")
     @ApiImplicitParams({
@@ -47,23 +47,11 @@ public class QuestionErrorController extends BaseController{
         return toResponsePageInfo(list);
     }
 
-    /**
-     * 导出错题列表
-     */
-    @PreAuthorize("@ss.hasPermi('question:error:export')")
-    @Log(title = "错题", businessType = BusinessTypeEnum.EXPORT)
-    @GetMapping("/export")
-    @ApiOperation("导出错题列表Excel")
-    public Response<String> export(@ModelAttribute QuestionError questionError){
-        List<QuestionError> list = questionErrorService.selectQuestionErrorList(questionError);
-        ExcelUtil<QuestionError> util = new ExcelUtil<QuestionError>(QuestionError.class);
-        return util.exportExcel(list, "error");
-    }
 
     /**
      * 获取错题详细信息
      */
-    @PreAuthorize("@ss.hasPermi('question:error:query')")
+    //@PreAuthorize("@ss.hasPermi('question:error:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation("获取错题详细信息")
     public Response<QuestionError> getInfo(
@@ -76,7 +64,7 @@ public class QuestionErrorController extends BaseController{
     /**
      * 新增错题
      */
-    @PreAuthorize("@ss.hasPermi('question:error:add')")
+    //@PreAuthorize("@ss.hasPermi('question:error:add')")
     @Log(title = "错题", businessType = BusinessTypeEnum.INSERT)
     @PostMapping
     @ApiOperation("新增错题")
@@ -87,7 +75,7 @@ public class QuestionErrorController extends BaseController{
     /**
      * 修改错题
      */
-    @PreAuthorize("@ss.hasPermi('question:error:edit')")
+    //@PreAuthorize("@ss.hasPermi('question:error:edit')")
     @Log(title = "错题", businessType = BusinessTypeEnum.UPDATE)
     @PutMapping
     @ApiOperation("修改错题")
@@ -98,7 +86,7 @@ public class QuestionErrorController extends BaseController{
     /**
      * 删除错题
      */
-    @PreAuthorize("@ss.hasPermi('question:error:remove')")
+    //@PreAuthorize("@ss.hasPermi('question:error:remove')")
     @Log(title = "错题", businessType = BusinessTypeEnum.DELETE)
 	@DeleteMapping("/{ids}")
     @ApiOperation("删除错题")