|
@@ -65,7 +65,7 @@ public class AdminWebsitLogic {
|
|
|
|
|
|
List<AdminWebsitTree> parentList = trees.stream().filter(x -> x.getParentId() == 0).collect(Collectors.toList());
|
|
|
for(AdminWebsitTree adminWebsit:parentList){
|
|
|
- adminWebsit.setChildren(this.treeModule(trees,adminWebsit.getWebsitId(),adminWebsit.getCorpId()));
|
|
|
+ adminWebsit.setChildren(this.treeModule(trees,adminWebsit.getWebsitId(),adminWebsit.getCompanyWechatId()));
|
|
|
}
|
|
|
return parentList;
|
|
|
}
|
|
@@ -190,18 +190,18 @@ public class AdminWebsitLogic {
|
|
|
* @param parentId
|
|
|
* @return
|
|
|
*/
|
|
|
- private List<AdminWebsitTree> treeModule(List<AdminWebsitTree> list, String parentId,String corpId){
|
|
|
+ private List<AdminWebsitTree> treeModule(List<AdminWebsitTree> list, String parentId,String companyId){
|
|
|
//最父级资源树
|
|
|
if(parentId == null || parentId.equals("0")) {
|
|
|
return null;
|
|
|
}
|
|
|
List<AdminWebsitTree> collect = list.stream()
|
|
|
- .filter(e -> e.getParentId().equals(parentId) && e.getCorpId().equals(corpId)).collect(Collectors.toList());
|
|
|
+ .filter(e -> e.getParentId().equals(parentId) && e.getCompanyWechatId().equals(companyId)).collect(Collectors.toList());
|
|
|
if(collect.size() == 0){
|
|
|
return null;
|
|
|
}
|
|
|
for(AdminWebsitTree bean : collect){
|
|
|
- bean.setChildren(this.treeModule(list, bean.getWebsitId(),bean.getCorpId()));
|
|
|
+ bean.setChildren(this.treeModule(list, bean.getWebsitId(),bean.getCompanyWechatId()));
|
|
|
}
|
|
|
return collect;
|
|
|
}
|