From f25c800bca726b67ea74e6ed576b038b1b9561a7 Mon Sep 17 00:00:00 2001 From: 18516761980 <4761516tqsxp> Date: 星期一, 16 八月 2021 08:22:57 +0800 Subject: [PATCH] # --- src/main/java/com/slcf/controller/WaitPakOutLogController.java | 34 +++++++++++++++++++++++++++++----- 1 files changed, 29 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/slcf/controller/WaitPakOutLogController.java b/src/main/java/com/slcf/controller/WaitPakOutLogController.java index cf2b5d4..f9b4ff1 100644 --- a/src/main/java/com/slcf/controller/WaitPakOutLogController.java +++ b/src/main/java/com/slcf/controller/WaitPakOutLogController.java @@ -5,6 +5,7 @@ import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -35,12 +36,12 @@ SysLogService sysLogService; @Autowired RoleService roleService; - + @RequestMapping("/goWaitPakOutLog.action") public String goWaitPakOutLogPage(HttpServletRequest request){ try { String rid = request.getSession().getAttribute("ROLEID").toString(); - String authCode = roleService.getAuthListByRoleMenu(Integer.parseInt(rid), + String authCode = roleService.getAuthListByRoleMenu(Integer.parseInt(rid), AuthorityCode.WaitPakOutLogCode); request.getSession().setAttribute("AUTHCODE",authCode); // 鎻掑叆鏃ュ織 @@ -57,7 +58,7 @@ } return "waitPakOutLog"; } - + /** * 鍒嗛〉鏌ヨ鎵�鏈� * @param pageNumber @@ -83,7 +84,30 @@ }catch(Exception e) { System.out.println(e.getMessage()); return null; - } + } } - + + /** + * 瀵煎嚭鎵�鏈� + * @param response + */ + @RequestMapping("/exportWaitPakOutLog.action") + public void ExportExcel(WaitPakOutLogCondition waitPakOutLogCondition, HttpServletResponse response, HttpServletRequest request){ + try { + waitPakOutLogService.ExportWaitPakOutLogList(waitPakOutLogCondition,response); + + // 鎻掑叆鏃ュ織 + UserBean user = (UserBean) request.getSession().getAttribute("USER"); + SysLogBean sysLog = new SysLogBean(); + sysLog.setLogin_no(user.getUser_account()); + sysLog.setMachine_ip(request.getRemoteAddr()); + sysLog.setForm_no("exportWaitPakOutLog.action"); + sysLog.setTts_keyname("瀵煎嚭鍑哄簱閫氱煡鍘嗗彶妗e埌EXCEL"); + sysLog.setModi_user(user.getUser_account()); + sysLogService.insertSysLog(sysLog); + }catch (Exception e) { + System.out.println(e.getMessage()); + } + } + } -- Gitblit v1.9.1