From 24d21f34c10fa46d526a0aa391befab3b535f78d Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期日, 08 十月 2023 15:18:52 +0800 Subject: [PATCH] 去除空白行~ --- src/main/java/com/moon/server/controller/sys/RoleMenuAuthController.java | 24 ++++++------------------ 1 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/main/java/com/moon/server/controller/sys/RoleMenuAuthController.java b/src/main/java/com/moon/server/controller/sys/RoleMenuAuthController.java index 03e4275..6add912 100644 --- a/src/main/java/com/moon/server/controller/sys/RoleMenuAuthController.java +++ b/src/main/java/com/moon/server/controller/sys/RoleMenuAuthController.java @@ -168,10 +168,8 @@ entity.setCreateUser(ue.getId()); } + permsService.clearPermsCache(); int count = roleMenuAuthService.insert(entity); - if (count > 0) { - permsService.clearPermsCache(); - } return success(count); } catch (Exception ex) { @@ -194,10 +192,8 @@ } } + permsService.clearPermsCache(); int count = roleMenuAuthService.inserts(list); - if (count > 0) { - permsService.clearPermsCache(); - } return success(count); } catch (Exception ex) { @@ -213,10 +209,8 @@ @GetMapping(value = "/delete") public ResponseMsg<Integer> delete(int id) { try { + permsService.clearPermsCache(); int count = roleMenuAuthService.delete(id); - if (count > 0) { - permsService.clearPermsCache(); - } return success(count); } catch (Exception ex) { @@ -236,10 +230,8 @@ return fail("id鏁扮粍涓嶈兘涓虹┖", -1); } + permsService.clearPermsCache(); int count = roleMenuAuthService.deletes(ids); - if (count > 0) { - permsService.clearPermsCache(); - } return success(count); } catch (Exception ex) { @@ -261,10 +253,8 @@ entity.setUpdateUser(ue.getId()); } + permsService.clearPermsCache(); int count = roleMenuAuthService.update(entity); - if (count > 0) { - permsService.clearPermsCache(); - } return success(count); } catch (Exception ex) { @@ -288,10 +278,8 @@ } } + permsService.clearPermsCache(); int count = roleMenuAuthService.updates(list); - if (count > 0) { - permsService.clearPermsCache(); - } return success(count); } catch (Exception ex) { -- Gitblit v1.9.3