mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-02 10:57:49 +08:00
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user