From 15a4e082bddf0f63cd4b7c93d1501b3afd41ee7a Mon Sep 17 00:00:00 2001 From: zch Date: Fri, 15 Nov 2024 17:46:13 +0800 Subject: [PATCH] =?UTF-8?q?style(os-ems):=20=E4=BF=AE=E6=AD=A3=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 @PreAuthorize 注解中的权限字符串从 'ems.base:baseEnergyType:*' 修改为 'ems/base:baseEnergyType:*' - 统一权限字符串的格式,使用斜杠 '/' 替代点号 '.' 分隔权限级别 --- .../base/controller/EmsBaseEnergyTypeController.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/os-ems/src/main/java/com/os/ems/base/controller/EmsBaseEnergyTypeController.java b/os-ems/src/main/java/com/os/ems/base/controller/EmsBaseEnergyTypeController.java index 91cdf37..f2f08ff 100644 --- a/os-ems/src/main/java/com/os/ems/base/controller/EmsBaseEnergyTypeController.java +++ b/os-ems/src/main/java/com/os/ems/base/controller/EmsBaseEnergyTypeController.java @@ -37,7 +37,7 @@ public class EmsBaseEnergyTypeController extends BaseController /** * 查询能源类型信息列表 */ - @PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:list')") + @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:list')") @GetMapping("/list") public TableDataInfo list(EmsBaseEnergyType emsBaseEnergyType) { @@ -70,7 +70,7 @@ public class EmsBaseEnergyTypeController extends BaseController /** * 导出能源类型信息列表 */ - @PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:export')") + @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:export')") @Log(title = "能源类型信息", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, EmsBaseEnergyType emsBaseEnergyType) @@ -83,7 +83,7 @@ public class EmsBaseEnergyTypeController extends BaseController /** * 获取能源类型信息详细信息 */ - @PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:query')") + @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:query')") @GetMapping(value = "/{objId}") public AjaxResult getInfo(@PathVariable("objId") Long objId) { @@ -93,7 +93,7 @@ public class EmsBaseEnergyTypeController extends BaseController /** * 新增能源类型信息 */ - @PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:add')") + @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:add')") @Log(title = "能源类型信息", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody EmsBaseEnergyType emsBaseEnergyType) @@ -104,7 +104,7 @@ public class EmsBaseEnergyTypeController extends BaseController /** * 修改能源类型信息 */ - @PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:edit')") + @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:edit')") @Log(title = "能源类型信息", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody EmsBaseEnergyType emsBaseEnergyType) @@ -115,7 +115,7 @@ public class EmsBaseEnergyTypeController extends BaseController /** * 删除能源类型信息 */ - @PreAuthorize("@ss.hasPermi('ems.base:baseEnergyType:remove')") + @PreAuthorize("@ss.hasPermi('ems/base:baseEnergyType:remove')") @Log(title = "能源类型信息", businessType = BusinessType.DELETE) @DeleteMapping("/{objIds}") public AjaxResult remove(@PathVariable Long[] objIds)