@Override public EmployeeModel login(String userName, String userPass, String loginIp) { EmployeeModel em = findByNameAndPass(userName, userPass); if (em != null) { em.setLastLoginIp(loginIp); em.setLastLoginTime(System.currentTimeMillis()); em.setLoginTimes(em.getLoginTimes() + 1); } return em; }