【重复加载实训人员时出错】
This commit is contained in:
parent
700d95e4a7
commit
d39f9dbdbb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue