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

添加站点授权

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