【无群组信息是给默认数据】
This commit is contained in:
parent
d9812813d7
commit
0a8082ed97
|
@ -303,12 +303,17 @@ public class Simulation extends club.joylink.rtss.simulation.Simulation<Simulati
|
|||
SimulationBuildParams buildParams = this.getBuildParams();
|
||||
List<ConversationGroupVO> conversationGroupVOList = buildParams.getMap().getGraphDataNew()
|
||||
.getConversationGroupMap().get(buildParams.getWorkParamVO().getType());
|
||||
Map<Long, ConversationGroup> groupMap = conversationGroupVOList.stream().filter(ConversationGroupVO::isValid)
|
||||
.map(g ->{
|
||||
ConversationGroup group = new ConversationGroup(this, g);
|
||||
group.initGroupType();
|
||||
return group;
|
||||
}).collect(Collectors.toMap(ConversationGroup::getId, group -> group));
|
||||
Map<Long, ConversationGroup> groupMap = null;
|
||||
if (CollectionUtils.isEmpty(conversationGroupVOList)) {
|
||||
groupMap = new HashMap<>();
|
||||
} else {
|
||||
groupMap = conversationGroupVOList.stream().filter(ConversationGroupVO::isValid)
|
||||
.map(g ->{
|
||||
ConversationGroup group = new ConversationGroup(this, g);
|
||||
group.initGroupType();
|
||||
return group;
|
||||
}).collect(Collectors.toMap(ConversationGroup::getId, group -> group));
|
||||
}
|
||||
overCoverConversationGroupMap(groupMap);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue