| | |
| | | |
| | | 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; |
| | |
| | | SysLogService sysLogService; |
| | | @Autowired |
| | | RoleService roleService; |
| | | |
| | | |
| | | @RequestMapping("/goWaitPakInLog.action") |
| | | public String goWaitPakInLogPage(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.WaitPakInLogCode); |
| | | request.getSession().setAttribute("AUTHCODE",authCode); |
| | | // 插入日志 |
| | |
| | | } |
| | | return "waitPakInLog"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分页查询所有 |
| | | * @param pageNumber |
| | |
| | | }catch(Exception e) { |
| | | System.out.println(e.getMessage()); |
| | | return null; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导出所有 |
| | | * @param response |
| | | */ |
| | | @RequestMapping("/exportWaitPakInLog.action") |
| | | public void ExportExcel(WaitPakInLogCondition waitPakInLogCondition, HttpServletResponse response, HttpServletRequest request){ |
| | | try { |
| | | waitPakInLogService.ExportWaitPakInLogList(waitPakInLogCondition,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("exportWaitPakInLog.action"); |
| | | sysLog.setTts_keyname("导出入库通知历史档到EXCEL"); |
| | | sysLog.setModi_user(user.getUser_account()); |
| | | sysLogService.insertSysLog(sysLog); |
| | | }catch (Exception e) { |
| | | System.out.println(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |