From 012590ca2c7aebef2c42dbfb6b9a8b286d8181fb Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 17 二月 2024 17:04:53 +0800 Subject: [PATCH] # --- zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java index 61ae217..574cdd7 100644 --- a/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java +++ b/zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/system/controller/RoleController.java @@ -31,7 +31,7 @@ @Autowired private RoleService roleService; - @PreAuthorize("hasAuthority('sys:role:list')") + @PreAuthorize("hasAuthority('system:role:list')") @PostMapping("/role/page") public R page(@RequestBody Map<String, Object> map) { BaseParam baseParam = buildParam(map, BaseParam.class); @@ -39,19 +39,19 @@ return R.ok().add(roleService.page(pageParam, pageParam.buildWrapper(true))); } - @PreAuthorize("hasAuthority('sys:role:list')") + @PreAuthorize("hasAuthority('system:role:list')") @PostMapping("/role/list") public R list(@RequestBody Map<String, Object> map) { return R.ok().add(roleService.list()); } - @PreAuthorize("hasAuthority('sys:role:list')") + @PreAuthorize("hasAuthority('system:role:list')") @GetMapping("/role/{id}") public R get(@PathVariable("id") Long id) { return R.ok().add(roleService.getById(id)); } - @PreAuthorize("hasAuthority('sys:role:save')") + @PreAuthorize("hasAuthority('system:role:save')") @OperationLog("娣诲姞瑙掕壊") @PostMapping("/role/save") public R save(@RequestBody Role role) { @@ -69,7 +69,7 @@ return R.ok("娣诲姞鎴愬姛"); } - @PreAuthorize("hasAuthority('sys:role:update')") + @PreAuthorize("hasAuthority('system:role:update')") @OperationLog("淇敼瑙掕壊") @PostMapping("/role/update") public R update(@RequestBody Role role) { @@ -89,7 +89,7 @@ return R.ok("淇敼鎴愬姛"); } - @PreAuthorize("hasAuthority('sys:role:remove')") + @PreAuthorize("hasAuthority('system:role:remove')") @OperationLog("鍒犻櫎瑙掕壊") @PostMapping("/role/remove/{ids}") public R remove(@PathVariable Long[] ids) { @@ -99,7 +99,7 @@ return R.ok("鍒犻櫎鎴愬姛"); } - @PreAuthorize("hasAuthority('sys:role:list')") + @PreAuthorize("hasAuthority('system:role:list')") @PostMapping("/role/query") public R query(@RequestParam(required = false) String condition) { List<KeyValVo> vos = new ArrayList<>(); @@ -113,7 +113,7 @@ return R.ok().add(vos); } - @PreAuthorize("hasAuthority('sys:role:list')") + @PreAuthorize("hasAuthority('system:role:list')") @PostMapping("/role/export") public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { ExcelUtil.build(ExcelUtil.create(roleService.list(), Role.class), response); -- Gitblit v1.9.1