Commit de8c1957 by 王祖波

组装门店和导购判空

parent 8e01e681
...@@ -194,8 +194,8 @@ public class MaterialDataAdaptor { ...@@ -194,8 +194,8 @@ public class MaterialDataAdaptor {
List<String> clerkIdList = new ArrayList<>(); List<String> clerkIdList = new ArrayList<>();
List<String> storeIdList = new ArrayList<>(); List<String> storeIdList = new ArrayList<>();
pageData.getResult().forEach(item -> { pageData.getResult().forEach(item -> {
clerkIdList.add(item.getClerkId()); Optional.ofNullable(item.getClerkId()).ifPresent(clerkIdList::add);
storeIdList.add(item.getStoreId()); Optional.ofNullable(item.getStoreId()).ifPresent(storeIdList::add);
}); });
Map<String, ClerkDTO> clerkMap = new HashMap<>(); Map<String, ClerkDTO> clerkMap = new HashMap<>();
Map<String, StoreDTO> storeMap = new HashMap<>(); Map<String, StoreDTO> storeMap = new HashMap<>();
......
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