【重复加载实训人员时出错】

This commit is contained in:
weizhihong 2023-11-28 14:16:39 +08:00
parent 700d95e4a7
commit d39f9dbdbb
1 changed files with 1 additions and 3 deletions

View File

@ -314,9 +314,7 @@ public class MemberManager {
}
// 删除在原始数据中不存在的成员
List<SimulationMember> members = simulation.getSimulationMembers();
Map<String, SimulationMember> simMemberMap = new HashMap<>(members.size());
for (SimulationMember m : members) {
simMemberMap.put(m.getId(), m);
if (originMemberMap.containsKey(m.getId())) {
continue;
}
@ -325,7 +323,7 @@ public class MemberManager {
// 加入额外的成员
if (!CollectionUtils.isEmpty(memberPOS)) {
for (SimulationMemberPO p : memberPOS) {
if (simMemberMap.containsKey(p.getId())) {
if (originMemberMap.containsKey(p.getId())) {
continue;
}
MapElement mapElement = null;