|
|
@ -84,11 +84,10 @@ public class AdminCheckAuthorityAspect {
|
|
|
|
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
|
|
|
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
|
|
|
AdminCheckAuthorityAnnotation annotation = signature.getMethod().getAnnotation(AdminCheckAuthorityAnnotation.class);
|
|
|
|
AdminCheckAuthorityAnnotation annotation = signature.getMethod().getAnnotation(AdminCheckAuthorityAnnotation.class);
|
|
|
|
String jurisdictionId = annotation.jurisdictionId();
|
|
|
|
String jurisdictionId = annotation.jurisdictionId();
|
|
|
|
if (!jurisdictionId.equals("")) {
|
|
|
|
|
|
|
|
//5、判断该用户是否存在该api所需权限,如果存在,则通过,不存在则抛出提示权限不足
|
|
|
|
//5、判断该用户是否存在该api所需权限,如果存在,则通过,不存在则抛出提示权限不足
|
|
|
|
if (!jurisdictionIds.contains(Integer.valueOf(jurisdictionId))) {
|
|
|
|
if (!jurisdictionIds.contains(Integer.valueOf(jurisdictionId))) {
|
|
|
|
throw new BizException(HttpStatusEnum.CUSTOM_EXCEPTION, "用户权限不足");
|
|
|
|
throw new BizException(HttpStatusEnum.CUSTOM_EXCEPTION, "用户权限不足");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|