Commit 06891ae3 authored by wdy's avatar wdy

查询在线用户

parent 508227d4
......@@ -24,7 +24,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
@Override
public SysUserOnline selectOnlineByIpaddr(String ipaddr, LoginUser user)
{
if (StringUtils.equals(ipaddr, user.getIpaddr()))
if (StringUtils.contains(ipaddr, user.getIpaddr()))
{
return loginUserToUserOnline(user);
}
......@@ -41,7 +41,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
@Override
public SysUserOnline selectOnlineByUserName(String userName, LoginUser user)
{
if (StringUtils.equals(userName, user.getUsername()))
if (StringUtils.contains(userName, user.getUsername()))
{
return loginUserToUserOnline(user);
}
......@@ -59,7 +59,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
@Override
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);
}
......
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