中扬CRM客户关系管理系统
LSH
2024-04-03 674aef62d298f9fbce41b9b1725c71d056dfd55b
src/main/java/com/zy/crm/common/web/AuthController.java
@@ -450,12 +450,13 @@
    @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]);