Commit 0849dc506a18b43c13748dfc1bb0e4b7a473e231

Authored by 戈灵虎
1 parent cbcaa234

refactor(garden): 移除树木管理接口的权限校验

- 移除 /dept/list 接口的 @PreAuthorize 权限注解
- 移除 /road/list 接口的 @PreAuthorize 权限注解
- 保留原有的业务逻辑和参数校验
- 简化接口权限控制机制
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/app/tree/AppTreeController.java
... ... @@ -72,7 +72,6 @@ public class AppTreeController {
72 72  
73 73  
74 74 @GetMapping("/dept/list")
75   - @PreAuthorize("@ss.hasPermission('garden:tree:list')")
76 75 public CommonResult<List<CompanyDeptRoadVO>> list(@RequestParam Long companyId,@RequestParam(required = false) String roadName) {
77 76 LoginUser user = SecurityFrameworkUtils.getLoginUser();
78 77 if (null == user) {
... ... @@ -86,7 +85,6 @@ public class AppTreeController {
86 85 }
87 86  
88 87 @GetMapping("/road/list")
89   - @PreAuthorize("@ss.hasPermission('garden:tree:list')")
90 88 public CommonResult<PageResult<RoadTreeVO>> listTreesByRoad(@RequestParam(required = false) Long road) {
91 89 TreePageReqVO pageReqVO = new TreePageReqVO();
92 90 pageReqVO.setRoad(road);
... ...