Explorar o código

提交:学员信息导出

yangdamao %!s(int64=3) %!d(string=hai) anos
pai
achega
2a2c4342fe

+ 13 - 0
zhongzheng-admin/src/main/java/com/zhongzheng/controller/grade/ClassGradeController.java

@@ -11,6 +11,7 @@ import cn.afterturn.easypoi.excel.entity.ExportParams;
 import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
 import cn.hutool.core.lang.Validator;
 import com.github.pagehelper.PageInfo;
+import com.zhongzheng.common.core.domain.entity.SysRole;
 import com.zhongzheng.common.core.redis.RedisCache;
 import com.zhongzheng.common.utils.SecurityUtils;
 import com.zhongzheng.common.utils.ServletUtils;
@@ -143,6 +144,18 @@ public class ClassGradeController extends BaseController {
         return getDataTable(list);
     }
 
+    /**
+     * 导出班级学员列表
+     */
+    @ApiOperation("导出班级学员列表")
+//    @PreAuthorize("@ss.hasPermi('grade:grade:list')")
+    @GetMapping("/exportListGrade")
+    public AjaxResult exportListGrade(ClassGradeUserQueryBo bo) {
+        List<ClassGradeStudentVo> list = iClassGradeService.listGrade(bo);
+        ExcelUtil<ClassGradeStudentVo> util = new ExcelUtil<ClassGradeStudentVo>(ClassGradeStudentVo.class);
+        return util.exportExcel(list, "班级学员列表");
+    }
+
     /**
      * 学员进入新的班级
      */