Package com.eatle.persistent.pojo.system.systemdata

Examples of com.eatle.persistent.pojo.system.systemdata.LoginLog


    /**
     * @Description: 写入登陆日志
     */
  private void writeLoginLog(User user)
  {
    LoginLog loginLog = new LoginLog();
   
    if(Constants.UserType.USERTYPE_ADMINISTRATOR == user.getType())
      loginLog.setIdentifyType(Constants.Identity.IDENTITY_ADMINISTRATOR);
    else
      loginLog.setIdentifyType(Constants.Identity.IDENTITY_MERCHANT);
    loginLog.setIdentifyId(user.getId());
    loginLog.setLoginIp(request.getRemoteAddr());
    loginLog.setLoginTime(new Date());
   
    loginLogService.add(loginLog);
  }
View Full Code Here

TOP

Related Classes of com.eatle.persistent.pojo.system.systemdata.LoginLog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.