Commit 34a75274 by 徐高华

客户流失数

parent 1a1735a0
...@@ -655,10 +655,12 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -655,10 +655,12 @@ public class GroupChatServiceImpl implements GroupChatService {
} }
// 删除退群的人 // 删除退群的人
List<Long> deleteIdList = new ArrayList<>(); List<Long> deleteIdList = new ArrayList<>();
List<String> deleteUserIdList = new ArrayList<>();
List<String> nowQwUserIdList = qwUserList.stream().map(dto -> dto.getUserid()).collect(Collectors.toList()); List<String> nowQwUserIdList = qwUserList.stream().map(dto -> dto.getUserid()).collect(Collectors.toList());
for (TabGroupChatUser user : nowUserList) { for (TabGroupChatUser user : nowUserList) {
if (!nowQwUserIdList.contains(user.getUserId())) { if (!nowQwUserIdList.contains(user.getUserId())) {
deleteIdList.add(user.getChatUserId()); deleteIdList.add(user.getChatUserId());
deleteUserIdList.add(user.getUserId()) ;
} }
} }
// 总成员数 // 总成员数
...@@ -672,7 +674,7 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -672,7 +674,7 @@ public class GroupChatServiceImpl implements GroupChatService {
if (CollectionUtils.isNotEmpty(deleteIdList)) { if (CollectionUtils.isNotEmpty(deleteIdList)) {
this.groupChatUserMapper.dismiss(deleteIdList, chat.getStaffId()); this.groupChatUserMapper.dismiss(deleteIdList, chat.getStaffId());
quitCount = deleteIdList.size(); quitCount = deleteIdList.size();
for (Long userId : deleteIdList) { for (String userId : deleteUserIdList) {
TabGroupChatUser user = nowUserMap.get(userId); TabGroupChatUser user = nowUserMap.get(userId);
if (null != user && user.getUserType() == 3) { if (null != user && user.getUserType() == 3) {
++quitMemberCount; ++quitMemberCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment