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())) {