Commit dca45701 by 徐高华

手动配置过的群活码直接匹配

parent 33390512
......@@ -457,6 +457,11 @@ public class JoinRuleManager {
return new HashMap<>();
}
List<Long> chatHmIdList = chatHmList.stream().map(TabGroupChatHmRelation::getChatHmId).collect(Collectors.toList());
List<TabGroupChatHm> setHmList = this.groupChatHmMapper.listByStoreIdList(storeIdList) ;
if(CollectionUtils.isNotEmpty(setHmList)) {
logger.info("配置的群活码={}",JSONObject.toJSONString(setHmList));
chatHmIdList.addAll(setHmList.stream().map(o->o.getChatHmId()).collect(Collectors.toList())) ;
}
//通过群查询群活码
Map<Long, Set<Long>> groupChatToHmMap = chatHmList.stream().collect(Collectors.groupingBy(TabGroupChatHmRelation::getGroupChatId,
Collectors.mapping(TabGroupChatHmRelation::getChatHmId, Collectors.toSet())));
......
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