This commit is contained in:
zhou-hao
2017-11-06 08:41:49 +08:00
parent 721b5db069
commit a7cc9be2d8
2 changed files with 3 additions and 3 deletions

View File

@@ -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()) {

View File

@@ -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();
}