From 6a513b1f19db448323de24654dfa0ff55a9406e6 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Sun, 30 Oct 2022 20:13:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=83=A8=E9=97=A8=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/skyeye/eve/service/impl/CompanyChatServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyeye-promote/skyeye-userauth/src/main/java/com/skyeye/eve/service/impl/CompanyChatServiceImpl.java b/skyeye-promote/skyeye-userauth/src/main/java/com/skyeye/eve/service/impl/CompanyChatServiceImpl.java index 0a98b53b..47ad030d 100644 --- a/skyeye-promote/skyeye-userauth/src/main/java/com/skyeye/eve/service/impl/CompanyChatServiceImpl.java +++ b/skyeye-promote/skyeye-userauth/src/main/java/com/skyeye/eve/service/impl/CompanyChatServiceImpl.java @@ -4,6 +4,7 @@ package com.skyeye.eve.service.impl; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.json.JSONUtil; import com.skyeye.common.constans.Constants; import com.skyeye.common.object.InputObject; @@ -72,7 +73,7 @@ public class CompanyChatServiceImpl implements CompanyChatService { } else { userList = JSONUtil.toList(jedisService.get(Constants.getSysTalkGroupUserListMationById(depart.get("id").toString() + "_" + userId)), null); } - if (userList != null && !userList.isEmpty()) { + if (CollectionUtil.isNotEmpty(userList)) { Set uId = TalkWebSocket.getOnlineUserId(); for (Map u : userList) { if (uId.contains(u.get("id").toString())) {