zhou-hao 7 yıl önce
ebeveyn
işleme
a7cc9be2d8

+ 1 - 1
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-service/hsweb-system-authorization-service-simple/src/main/java/org/hswebframework/web/service/authorization/simple/SimpleMenuGroupService.java

@@ -70,7 +70,7 @@ public class SimpleMenuGroupService
     }
 
     @Override
-    @Cacheable(key = "'group-id-list:'+#groupId==null?0:#groupId.hashCode()")
+    @Cacheable(key = "'group-id-list:'+(#groupId==null?0:#groupId.hashCode())")
     public List<MenuEntity> getMenuByGroupId(List<String> groupId) {
         List<MenuGroupBindEntity> bindEntities = menuGroupBindService.selectByPk(groupId);
         if (bindEntities == null || bindEntities.isEmpty()) {

+ 2 - 2
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-service/hsweb-system-authorization-service-simple/src/main/java/org/hswebframework/web/service/authorization/simple/SimpleMenuService.java

@@ -92,7 +92,7 @@ public class SimpleMenuService
     }
 
     @Override
-    @Cacheable(key = "'ids:'+#id==null?'0':#id.hashCode()")
+    @Cacheable(key = "'ids:'+(#id==null?'0':#id.hashCode())")
     public List<MenuEntity> selectByPk(List<String> id) {
         return super.selectByPk(id);
     }
@@ -109,7 +109,7 @@ public class SimpleMenuService
     }
 
     @Override
-    @Cacheable(key = "'permission-ids:'+#permissionId==null?'0':#permissionId.hashCode()")
+    @Cacheable(key = "'permission-ids:'+(#permissionId==null?'0':#permissionId.hashCode())")
     public List<MenuEntity> getByPermissionId(List<String> permissionId) {
         return createQuery().noPaging().where().in("permissionId", permissionId).list();
     }