Commit 79c6b726 by 徐高华

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

并发控制

See merge request !838
parents 66d459b0 ed5ae704
...@@ -482,7 +482,7 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -482,7 +482,7 @@ public class GroupChatServiceImpl implements GroupChatService {
if (CollectionUtils.isEmpty(staffList)) { if (CollectionUtils.isEmpty(staffList)) {
break; break;
} }
logger.info("查询staff表第{}页,共{}条", pageNum + 1, staffList.size()); logger.info("查询staff表第{}页,共{}条,{}", pageNum + 1, staffList.size(), wxEnterpriseId);
List<String> userIdList = null; List<String> userIdList = null;
if (qwDTO.needOpenUserIdDk()) { if (qwDTO.needOpenUserIdDk()) {
userIdList = staffList.stream().filter(dto -> StringUtils.isNotBlank(dto.getWxOpenUseId())) userIdList = staffList.stream().filter(dto -> StringUtils.isNotBlank(dto.getWxOpenUseId()))
...@@ -565,6 +565,8 @@ public class GroupChatServiceImpl implements GroupChatService { ...@@ -565,6 +565,8 @@ public class GroupChatServiceImpl implements GroupChatService {
chat.setQuitCount(0); chat.setQuitCount(0);
chat.setQuitMemberCount(0); chat.setQuitMemberCount(0);
this.groupChatMapper.insert(chat); this.groupChatMapper.insert(chat);
} else {
groupChatId = groupChat.getGroupChatId();
} }
RedisUtil.unlock(lockKey); RedisUtil.unlock(lockKey);
} catch (Exception e) { } catch (Exception e) {
......
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