From 1313906bb1eb983d3beece810035e7fc28d6a92f Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期二, 20 五月 2025 16:57:11 +0800
Subject: [PATCH] 新增充电桩

---
 zy-acs-framework/src/main/resources/templates/react-admin/Controller.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zy-acs-framework/src/main/resources/templates/react-admin/Controller.txt b/zy-acs-framework/src/main/resources/templates/react-admin/Controller.txt
index 40d55ba..1a112d3 100644
--- a/zy-acs-framework/src/main/resources/templates/react-admin/Controller.txt
+++ b/zy-acs-framework/src/main/resources/templates/react-admin/Controller.txt
@@ -40,7 +40,7 @@
         return R.ok().add(@{SIMPLEENTITYNAME}Service.list());
     }
 
-    @PreAuthorize("hasAuthority('system:@{SIMPLEENTITYNAME}:list')")
+    @PreAuthorize("hasAuthority('@{ITEMNAME}:@{SIMPLEENTITYNAME}:list')")
     @PostMapping({"/@{SIMPLEENTITYNAME}/many/{ids}", "/@{SIMPLEENTITYNAME}s/many/{ids}"})
     public R many(@PathVariable Long[] ids) {
         return R.ok().add(@{SIMPLEENTITYNAME}Service.listByIds(Arrays.asList(ids)));

--
Gitblit v1.9.1