|
@@ -53,7 +53,7 @@ public class MultipleBrandServiceImpl extends ServiceImpl<MultipleBrandMapper, M
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
List<MultipleBrand> result = new ArrayList<>();
|
|
|
- List<String> idList = brands.stream().map(MultipleBrand::getId).collect(Collectors.toList());
|
|
|
+ List<String> idList = brands.stream().map(MultipleBrand::getOrganizationId).collect(Collectors.toList());
|
|
|
|
|
|
for (MultipleBrand brandsVO : brands) {
|
|
|
|
|
@@ -78,7 +78,7 @@ public class MultipleBrandServiceImpl extends ServiceImpl<MultipleBrandMapper, M
|
|
|
*/
|
|
|
public static MultipleBrand getChildren(List<MultipleBrand> list, MultipleBrand treeSelectVO) {
|
|
|
for (MultipleBrand MultipleBrand : list) {
|
|
|
- if (treeSelectVO.getId().equals(MultipleBrand.getParentId())) {
|
|
|
+ if (treeSelectVO.getOrganizationId().equals(MultipleBrand.getParentId())) {
|
|
|
List<MultipleBrand> children = CollectionUtil.isEmpty(treeSelectVO.getChildren()) ? new ArrayList<>() : treeSelectVO.getChildren();
|
|
|
children.add(getChildren(list, MultipleBrand));
|
|
|
treeSelectVO.setChildren(children);
|