| | |
| | | |
| | | @RequestMapping(value = "/power/menu/{resourceId}/auth") |
| | | @ManagerAuth |
| | | public R buttonResource(@PathVariable("resourceId") Long resourceId) { |
| | | public R buttonResource(@PathVariable("resourceId") String resourceId) { |
| | | long resourceId2 = Long.parseLong(resourceId); |
| | | List<Resource> resources; |
| | | if (getUserId() == 9527) { |
| | | resources = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 3).eq("resource_id", resourceId)); |
| | | resources = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 3).eq("resource_id", resourceId2)); |
| | | } else { |
| | | resources = roleResourceService.getMenuButtomResource(resourceId, getUserId()); |
| | | resources = roleResourceService.getMenuButtomResource(resourceId2, getUserId()); |
| | | } |
| | | for (Resource resource : resources) { |
| | | resource.setCode(resource.getCode().split("#")[1]); |