Commit d8a4475d by 张乐 Committed by GitHub

Merge pull request #294 from nobodyiam/portal-sync-item-fix

fix sync item bug
parents 2f451b88 cc11f774
...@@ -196,16 +196,6 @@ public class ConfigService { ...@@ -196,16 +196,6 @@ public class ConfigService {
changeSets.addUpdateItem(targetItem); 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; 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