Commit 06891ae3 authored by wdy's avatar wdy

查询在线用户

parent 508227d4
...@@ -24,7 +24,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService ...@@ -24,7 +24,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
@Override @Override
public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user) public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user)
{ {
if (StringUtils.equals(ipaddr, user.getIpaddr())) if (StringUtils.contains(ipaddr, user.getIpaddr()))
{ {
return loginUserToUserOnline(user); return loginUserToUserOnline(user);
} }
...@@ -41,7 +41,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService ...@@ -41,7 +41,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
@Override @Override
public SysUserOnline selectOnlineByUserName(String userName, LoginUser user) public SysUserOnline selectOnlineByUserName(String userName, LoginUser user)
{ {
if (StringUtils.equals(userName, user.getUsername())) if (StringUtils.contains(userName, user.getUsername()))
{ {
return loginUserToUserOnline(user); return loginUserToUserOnline(user);
} }
...@@ -59,7 +59,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService ...@@ -59,7 +59,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
@Override @Override
public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user) public SysUserOnline selectOnlineByInfo(String ipaddr, String userName, LoginUser user)
{ {
if (StringUtils.equals(ipaddr, user.getIpaddr()) && StringUtils.equals(userName, user.getUsername())) if (StringUtils.contains(ipaddr, user.getIpaddr()) && StringUtils.contains(userName, user.getUsername()))
{ {
return loginUserToUserOnline(user); return loginUserToUserOnline(user);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment