Commit cc11f774 by Jason Song

fix sync item bug

parent 5410b4e8
......@@ -196,16 +196,6 @@ public class ConfigService {
changeSets.addUpdateItem(targetItem);
}
}
//parse deleted items
List<ItemDTO> deletedItems = new LinkedList<>();
Map<String, ItemDTO> sourceItemMap = BeanUtils.mapByKey("key", sourceItems);
for (ItemDTO item : targetItems) {
if (sourceItemMap.get(item.getKey()) == null) {
deletedItems.add(item);
}
}
changeSets.setDeleteItems(deletedItems);
}
return changeSets;
......
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