package com.inks.hb.authinfo.controller; import com.inks.hb.authinfo.pojo.AuthInfo; import com.inks.hb.authinfo.service.AuthService; import com.inks.hb.authinfo.service.AuthServiceImpl; import com.inks.hb.common.ExportExcel; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.SQLException; import java.util.ArrayList; @WebServlet(name = "AuthInfoExcelServlet", value = "/AuthInfoExcelServlet") public class AuthInfoExcelServlet extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) { this.doGet(request, response); } protected void doGet(HttpServletRequest request, HttpServletResponse response) { AuthService service = new AuthServiceImpl(); ArrayList<AuthInfo> infoArrayList = null; try { infoArrayList = service.query(1, service.queryAuthInfoNum()); } catch (SQLException e) { e.printStackTrace(); } String[] headers = {"权限ID", "权限名称", "可读", "可写", "可改", "可删"}; String fileName = "权限信息"; ExportExcel<AuthInfo> ee = new ExportExcel<>(); ee.exportExcel(headers, infoArrayList, fileName, response); } }

李朝磊 LV18
2024年12月25日
微信网友_7298640909209600 LV2
2024年12月16日
zolscy LV24
2024年11月25日
15953970869 LV6
2024年11月9日
张泽帅 LV6
2024年10月18日
angaochong LV5
2024年10月10日
半夏bx LV14
2024年9月24日
864216741 LV2
2024年8月25日
odasdas LV1
2024年6月23日
赵鑫cdsaljkdfsa LV11
2024年6月18日

李朝磊 LV18
2024年12月25日
拜托你仔细听 LV3
2024年12月23日
2602275348 LV12
2024年12月19日
微信网友_7298641941385216
2024年12月16日
暂无贡献等级
微信网友_7298640909209600 LV2
2024年12月16日
sjwc88 LV3
2024年12月13日
微信网友_7290996505972736 LV4
2024年12月11日
lilina LV1
2024年12月9日
b1uccc LV2
2024年12月8日
微信网友_7005050423463936
2024年12月2日
暂无贡献等级