//比较两个list
//取出存在storeList中,但不存在storeSubList中的数据,差异数据放入differentList
private void listCompare(List<StoreOut> storeList, List<StoreOut> storeSubList) {
Map<StoreOut,Integer> map = new HashMap<>(storeSubList.size());
List<StoreOut> differentList = new ArrayList<>();
for(StoreOut storeOut: storeSubList){
map.put(storeOut,1);
}
for(StoreOut storeOut1 : storeList){
if(map.get(storeOut1)==null){
differentList.add(storeOut1);
}
}
}