|
@@ -114,6 +114,9 @@ public class CacheContext implements CommandLineRunner {
|
|
|
return zgs;
|
|
|
}
|
|
|
zgs.add(brand.getOrganizationId());
|
|
|
+ Map<String, MultipleBrand> coll = brandMap.values().stream().filter(bm -> bm.getChildren() != null).collect(Collectors.toMap(MultipleBrand::getOrganizationId, Function.identity()));
|
|
|
+ List<String> parentId = coll.values().stream().filter(bm -> id.equals(bm.getChildren().get(0).getOrganizationId())).map(MultipleBrand::getOrganizationId).collect(Collectors.toList());
|
|
|
+ zgs.addAll(parentId);
|
|
|
if(brand.getChildren() == null) return zgs;
|
|
|
for (MultipleBrand child : brand.getChildren()) {
|
|
|
List<String> childList = getChildList(child.getOrganizationId());
|