From 3b574875cb5f4e1eab24bfedbeff4cd3c2b19ea5 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 10 十一月 2021 10:07:28 +0800 Subject: [PATCH] update hutool 5.7.15 => 5.7.16 update okhttp 4.9.1 => 4.9.2 update spring-boot-admin 2.5.2 => 2.5.3 update redisson 3.16.3 => 3.16.4 update tlog 1.3.3 => 1.3.4 --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java index fd1384d..cf5afc5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysUserOnlineServiceImpl.java @@ -1,8 +1,7 @@ package com.ruoyi.system.service.impl; -import cn.hutool.core.lang.Validator; -import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.core.domain.model.LoginUser; +import com.ruoyi.common.utils.StringUtils; import com.ruoyi.system.domain.SysUserOnline; import com.ruoyi.system.service.ISysUserOnlineService; import org.springframework.stereotype.Service; @@ -10,10 +9,11 @@ /** * 鍦ㄧ嚎鐢ㄦ埛 鏈嶅姟灞傚鐞� * - * @author ruoyi + * @author Lion Li */ @Service public class SysUserOnlineServiceImpl implements ISysUserOnlineService { + /** * 閫氳繃鐧诲綍鍦板潃鏌ヨ淇℃伅 * @@ -68,7 +68,7 @@ */ @Override public SysUserOnline loginUserToUserOnline(LoginUser user) { - if (Validator.isNull(user) || Validator.isNull(user.getUser())) { + if (StringUtils.isNull(user) || StringUtils.isNull(user.getUser())) { return null; } SysUserOnline sysUserOnline = new SysUserOnline(); @@ -79,7 +79,7 @@ sysUserOnline.setBrowser(user.getBrowser()); sysUserOnline.setOs(user.getOs()); sysUserOnline.setLoginTime(user.getLoginTime()); - if (Validator.isNotNull(user.getUser().getDept())) { + if (StringUtils.isNotNull(user.getUser().getDept())) { sysUserOnline.setDeptName(user.getUser().getDept().getDeptName()); } return sysUserOnline; -- Gitblit v1.9.3