| | |
| | | ExcelUtil.exportExcel("UserLog-" + now, "sheet1", columnTitleArr, value, new HSSFWorkbook(), response); |
| | | } |
| | | |
| | | public void record(long uId, int operationType, String msg) { |
| | | public void record(long uId, int operationType, String msg, String msgEnUS) { |
| | | UserLog userLog = new UserLog(); |
| | | userLog.setTerminalIp(ActionUtil.getRequest().getRemoteAddr()); |
| | | //userLog.setTerminalIp(request.getRemoteAddr()); |
| | | userLog.setOperationTime(new Date()); |
| | | userLog.setUId((int)(uId)); |
| | | userLog.setUId((int) (uId)); |
| | | userLog.setOperationType(operationType); |
| | | userLog.setOperationMsg(msg); |
| | | userLog.setOperationMsgEnUs(msgEnUS); |
| | | mapper.insert(userLog); |
| | | } |
| | | |
| | | public void record(long uId, int operationType, String msg,String msgDetail) { |
| | | public void record(long uId, int operationType, String msg, String msgDetail, String msgEnUs, String msgDetailEnUs) { |
| | | UserLog userLog = new UserLog(); |
| | | userLog.setTerminalIp(ActionUtil.getRequest().getRemoteAddr()); |
| | | //userLog.setTerminalIp(request.getRemoteAddr()); |
| | | userLog.setOperationTime(new Date()); |
| | | userLog.setUId((int)(uId)); |
| | | userLog.setUId((int) (uId)); |
| | | userLog.setOperationType(operationType); |
| | | userLog.setOperationMsg(msg); |
| | | userLog.setOperationDetail(msgDetail); |
| | | userLog.setOperationMsg(msgEnUs); |
| | | userLog.setOperationDetail(msgDetailEnUs); |
| | | mapper.insert(userLog); |
| | | } |
| | | |
| | | public void record2(HttpServletRequest request,long uId, int operationType, String msg,String msgDetail) { |
| | | public void record2(HttpServletRequest request, long uId, int operationType, String msg, String msgDetail, String msgEnUs, String msgDetailEnUs) { |
| | | UserLog userLog = new UserLog(); |
| | | userLog.setTerminalIp(request.getRemoteAddr()); |
| | | //userLog.setTerminalIp(request.getRemoteAddr()); |
| | | userLog.setOperationTime(new Date()); |
| | | userLog.setUId((int)(uId)); |
| | | userLog.setUId((int) (uId)); |
| | | userLog.setOperationType(operationType); |
| | | userLog.setOperationMsg(msg); |
| | | userLog.setOperationDetail(msgDetail); |
| | | userLog.setOperationMsg(msgEnUs); |
| | | userLog.setOperationDetail(msgDetailEnUs); |
| | | mapper.insert(userLog); |
| | | } |
| | | |