| | |
| | | ExcelUtil.exportExcel("UserLog-"+now,"测试sheet1",columnTitleArr,value,new HSSFWorkbook(),response); |
| | | } |
| | | |
| | | public void record(long uId, int operationType, String msg) { |
| | | public void record(long uId,String name, int operationType, String msg) { |
| | | DocLog docLog = new DocLog(); |
| | | docLog.setTerminalIp(ActionUtil.getRequest().getRemoteAddr()); |
| | | docLog.setOprateDay(new Date()); |
| | | docLog.setId((int)(uId)); |
| | | docLog.setName(name); |
| | | docLog.setOprateType(operationType); |
| | | docLog.setOprateMsg(msg); |
| | | mapper.insert(docLog); |
| | | } |
| | | |
| | | public void record(long uId, int operationType, String msg,String msgDetail) { |
| | | public void record(long uId,String name, int operationType, String msg,String msgDetail) { |
| | | DocLog docLog = new DocLog(); |
| | | docLog.setTerminalIp(ActionUtil.getRequest().getRemoteAddr()); |
| | | docLog.setOprateDay(new Date()); |
| | | docLog.setId((int)(uId)); |
| | | docLog.setName(name); |
| | | docLog.setOprateType(operationType); |
| | | docLog.setOprateMsg(msg); |
| | | docLog.setOperationDetail(msgDetail); |
| | | mapper.insert(docLog); |
| | | } |
| | | |
| | | public void record2(HttpServletRequest request, long uId, int operationType, String msg, String msgDetail) { |
| | | public void record2(HttpServletRequest request,long uId, String name, int operationType, String msg, String msgDetail) { |
| | | DocLog docLog = new DocLog(); |
| | | docLog.setTerminalIp(request.getRemoteAddr()); |
| | | //userLog.setTerminalIp(request.getRemoteAddr()); |
| | | docLog.setOprateDay(new Date()); |
| | | docLog.setId((int)(uId)); |
| | | docLog.setName(name); |
| | | docLog.setOprateType(operationType); |
| | | docLog.setOprateMsg(msg); |
| | | docLog.setOperationDetail(msgDetail); |