From 634c0427b9574e6659b195b8b14b61c62d061a1f Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期一, 25 十二月 2023 13:44:28 +0800
Subject: [PATCH] 融云
---
ard-work/src/main/java/com/ruoyi/rongcloud/service/Impl/RongCloudServiceImpl.java | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/rongcloud/service/Impl/RongCloudServiceImpl.java b/ard-work/src/main/java/com/ruoyi/rongcloud/service/Impl/RongCloudServiceImpl.java
index 11cafea..525c632 100644
--- a/ard-work/src/main/java/com/ruoyi/rongcloud/service/Impl/RongCloudServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/rongcloud/service/Impl/RongCloudServiceImpl.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.redis.RedisCache;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.rongcloud.mapper.ArdRongGroupMapper;
@@ -9,6 +10,7 @@
import com.ruoyi.rongcloud.domain.*;
import com.ruoyi.rongcloud.param.*;
import com.ruoyi.rongcloud.service.RongCloudService;
+import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.utils.forest.RongCloudClient;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.codec.digest.DigestUtils;
@@ -38,6 +40,8 @@
private ArdRongGroupMapper ardRongGroupMapper;
@Resource
private ArdRongGroupUserMapper ardRongGroupUserMapper;
+ @Resource
+ private SysUserMapper sysUserMapper;
/**
@@ -171,7 +175,18 @@
@Override
public AjaxResult groupUserQuery(RongCloudGroupParam groupId) {
- return AjaxResult.success(rongCloudClient.groupUserQuery(getRongCloudHead(),groupId));
+ Map<String, Object> groupMap = rongCloudClient.groupUserQuery(getRongCloudHead(),groupId);
+ Integer code = (Integer) groupMap.get("code");
+ List<SysUser> sysUsers = new ArrayList<>();
+ if(code.equals(200)){
+ List<Map<String,String>> list = (List<Map<String, String>>) groupMap.get("users");
+ for (int i = 0; i < list.size(); i++) {
+ String id = list.get(i).get("id");
+ SysUser sysUser = sysUserMapper.selectUserById(id);
+ sysUsers.add(sysUser);
+ }
+ }
+ return AjaxResult.success(sysUsers);
}
@Override
--
Gitblit v1.9.3