你将如何完成更新的条目,而迭代通过按键更新项设置
Map<String,List<SObject>> Map1=new HashMap<String,List<SObject>>();
Map<String,List<SObject>> Map2=new HashMap<String,List<SObject>>();
for(String name: Map1.keyset()){
//do something
for(SObject obj1: Map1.get(name)){
//iterate through the list of SObjects returned for the key
for(SObject obj2 : Map2.get(name)){
//iterate through the list of SObject values for the keys and update or remove the values related to the key
}
}
}