主子表示例添加日期格式案例

This commit is contained in:
RuoYi
2020-08-11 17:34:10 +08:00
parent cdbf0e2264
commit a0ada99856
3 changed files with 39 additions and 1 deletions

View File

@ -119,7 +119,7 @@ public class SysUserOnlineServiceImpl implements ISysUserOnlineService
{
Cache<String, Deque<Serializable>> cache = ehCacheManager.getCache(ShiroConstants.SYS_USERCACHE);
Deque<Serializable> deque = cache.get(loginName);
if (StringUtils.isNull(cache) || StringUtils.isEmpty(deque))
if (StringUtils.isEmpty(deque) || deque.size() == 0)
{
return;
}