Commit 54581131 authored by 赵啸非's avatar 赵啸非

添加站点授权

parent bca6d9e6
...@@ -39,11 +39,11 @@ public class MenuServiceImpl extends AbstractCRUDServiceImpl<MenuDao, MenuEntity ...@@ -39,11 +39,11 @@ public class MenuServiceImpl extends AbstractCRUDServiceImpl<MenuDao, MenuEntity
} }
private void menudelete(Context context, Long id) { private void menudelete(Context context, Long id) {
List<MenuEntity> menuEntityList = this.find(new MenuQuery().parentId(id)); Long[] ids = this.find(new MenuQuery().parentId(id)).stream().map(item -> item.getId()).toArray(Long[]::new);
if(!ObjectUtils.isEmpty(menuEntityList)){ if(!ObjectUtils.isEmpty(ids)){
this.remove(menuEntityList, context); this.remove(ids, context);
menuEntityList.forEach(item->{ Arrays.asList(ids).forEach(item->{
menudelete(context,item.getId()); menudelete(context,item);
}); });
} }
} }
......
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