| | |
| | | package com.slcf.controller; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.slcf.pojo.*; |
| | | import com.slcf.service.*; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | | import com.slcf.pojo.UserBean; |
| | | import com.slcf.pojo.ViewInOutBean; |
| | | import com.slcf.pojo.ViewLocMapBean; |
| | | import com.slcf.pojo.ViewStayTimeBean; |
| | | import com.slcf.pojo.ViewStockUseBean; |
| | | import com.slcf.pojo.ViewWorkInBean; |
| | | import com.slcf.bean.LocDetailCondition; |
| | | import com.slcf.pojo.AdjDetailBean; |
| | | import com.slcf.pojo.PlcCommandBean; |
| | | import com.slcf.pojo.SysLogBean; |
| | | import com.slcf.service.LocDetailService; |
| | | import com.slcf.service.ReportQueryService; |
| | | import com.slcf.service.RoleService; |
| | | import com.slcf.service.SysLogService; |
| | | import com.slcf.util.AuthorityCode; |
| | | |
| | | /** |
| | |
| | | LocDetailService locDetailService; |
| | | @Autowired |
| | | RoleService roleService; |
| | | @Autowired |
| | | SapRequestLogService sapRequestLogService; |
| | | |
| | | @RequestMapping("/goViewSapRequestLog.action") |
| | | public String goViewSapRequestLog(HttpServletRequest request){ |
| | | try { |
| | | String rid = request.getSession().getAttribute("ROLEID").toString(); |
| | | String authCode = roleService.getAuthListByRoleMenu(Integer.parseInt(rid), |
| | | AuthorityCode.ViewStockUseCode); |
| | | request.getSession().setAttribute("AUTHCODE",authCode); |
| | | // 插入日志 |
| | | 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("goViewStockUse.action"); |
| | | sysLog.setTts_keyname("访问:SAP请求日志"); |
| | | sysLog.setModi_user(user.getUser_account()); |
| | | sysLogService.insertSysLog(sysLog); |
| | | }catch (Exception e) { |
| | | System.out.println(e.getMessage()); |
| | | } |
| | | return "sapRequestLog"; |
| | | } |
| | | |
| | | @RequestMapping("/goViewStockUse.action") |
| | | public String goViewStockUsePage(HttpServletRequest request){ |