public int addAdminLog(AdminLog adminLog, HttpServletRequest request) { if (!CollectionUtil.checkNull(adminLog.getOperAdmin()) && request.getSession().getAttribute("admin_account") != null) { adminLog.setOperAdmin((String) request.getSession().getAttribute("admin_account")); } adminLog.setOperIp(getIpAddr(request)); return this.adminLogDao.addAdminLog(adminLog); }
public int addAdminLog( String operService, String operMemo, int openState, HttpServletRequest request) { AdminLog adminLog = new AdminLog(); if (request.getSession().getAttribute("admin_account") != null) { adminLog.setOperAdmin((String) request.getSession().getAttribute("admin_account")); } adminLog.setOperIp(getIpAddr(request)); adminLog.setOperService(operService); adminLog.setOperMemo(operMemo); adminLog.setOpenState(openState); adminLog.setOperLang("中文"); return this.adminLogDao.addAdminLog(adminLog); }
/** * 添加日志 * * @param adminAccount * @param operService * @param operMemo * @param openState * @param request * @return */ public int addAdminLog( String adminAccount, String operService, String operMemo, int openState, HttpServletRequest request) { AdminLog adminLog = new AdminLog(); adminLog.setOperAdmin(adminAccount); adminLog.setOperIp(getIpAddr(request)); adminLog.setOperService(operService); adminLog.setOperMemo(operMemo); adminLog.setOpenState(openState); adminLog.setOperLang("中文"); return this.adminLogDao.addAdminLog(adminLog); }