From 2a87d200b9bc3f1bb26c164eb0a9fc8b905e5399 Mon Sep 17 00:00:00 2001 From: AlexBob <5199840@qq.com> Date: Wed, 5 Jun 2024 17:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1):=20=E4=BC=98=E5=8C=96=E4=BA=86`MenusService`?= =?UTF-8?q?=E4=B8=AD=E5=88=A0=E9=99=A4=E9=80=BB=E8=BE=91=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/platform/boot/relational/menus/MenusService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java b/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java index cd67a501..9562393c 100644 --- a/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java +++ b/boot/platform/src/main/java/com/platform/boot/relational/menus/MenusService.java @@ -88,8 +88,8 @@ public Mono delete(MenuRequest request) { } var deleteAuthorityMono = Flux.concatDelayError(this.groupAuthoritiesRepository.deleteByAuthorityIn(rules), this.userAuthoritiesRepository.deleteByAuthorityIn(rules)); - var deleteNextMono = Flux.concatDelayError(this.menusRepository.deleteByAuthority( - request.getAuthority()), deleteAuthorityMono); + var deleteNextMono = Flux.concatDelayError( + this.menusRepository.deleteByAuthority(request.getAuthority()), deleteAuthorityMono); return deleteNextMono.then().doAfterTerminate(() -> this.cache.clear()); } else { return this.menusRepository.delete(request.toMenu()).doAfterTerminate(() -> this.cache.clear());