Commit 0675b369 by 徐高华

Merge branch 'feature/社群' into 'developer'

客户流失数

See merge request !775
parents da88fef5 34a75274
......@@ -655,10 +655,12 @@ public class GroupChatServiceImpl implements GroupChatService {
}
// 删除退群的人
List<Long> deleteIdList = new ArrayList<>();
List<String> deleteUserIdList = new ArrayList<>();
List<String> nowQwUserIdList = qwUserList.stream().map(dto -> dto.getUserid()).collect(Collectors.toList());
for (TabGroupChatUser user : nowUserList) {
if (!nowQwUserIdList.contains(user.getUserId())) {
deleteIdList.add(user.getChatUserId());
deleteUserIdList.add(user.getUserId()) ;
}
}
// 总成员数
......@@ -672,7 +674,7 @@ public class GroupChatServiceImpl implements GroupChatService {
if (CollectionUtils.isNotEmpty(deleteIdList)) {
this.groupChatUserMapper.dismiss(deleteIdList, chat.getStaffId());
quitCount = deleteIdList.size();
for (Long userId : deleteIdList) {
for (String userId : deleteUserIdList) {
TabGroupChatUser user = nowUserMap.get(userId);
if (null != user && user.getUserType() == 3) {
++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