|
|
|
@ -59,8 +59,7 @@ public class PermissionDataAspect {
|
|
|
|
|
requestPath = filterUrl(requestPath); |
|
|
|
|
//update-begin-author:taoyan date:20211027 for:JTC-132【online报表权限】online报表带参数的菜单配置数据权限无效
|
|
|
|
|
//先判断是否online报表请求
|
|
|
|
|
// TODO 参数顺序调整有隐患
|
|
|
|
|
if(requestPath.indexOf(UrlMatchEnum.CGREPORT_DATA.getMatchUrl())>=0){ |
|
|
|
|
if(requestPath.indexOf(UrlMatchEnum.CGREPORT_DATA.getMatchUrl())>=0 || requestPath.indexOf(UrlMatchEnum.CGREPORT_ONLY_DATA.getMatchUrl())>=0){ |
|
|
|
|
// 获取地址栏参数
|
|
|
|
|
String urlParamString = request.getParameter(CommonConstant.ONL_REP_URL_PARAM_STR); |
|
|
|
|
if(oConvertUtils.isNotEmpty(urlParamString)){ |
|
|
|
@ -68,7 +67,7 @@ public class PermissionDataAspect {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//update-end-author:taoyan date:20211027 for:JTC-132【online报表权限】online报表带参数的菜单配置数据权限无效
|
|
|
|
|
log.info("拦截请求 >> {} ; 请求类型 >> {} . ", requestPath, requestMethod); |
|
|
|
|
log.debug("拦截请求 >> {} ; 请求类型 >> {} . ", requestPath, requestMethod); |
|
|
|
|
String username = JwtUtil.getUserNameByToken(request); |
|
|
|
|
//查询数据权限信息
|
|
|
|
|
//TODO 微服务情况下也得支持缓存机制
|
|
|
|
|