@Around("@annotation(requireArea)")
public Object doAroundService(ProceedingJoinPoint joinPoint, RequireArea requireArea) throws Throwable {
Class<?> aClass = joinPoint.getTarget().getClass();
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Method method = aClass.getDeclaredMethod(signature.getName(), signature.getParameterTypes());
for (Object arg : joinPoint.getArgs()) {
for (Field field : arg.getClass().getDeclaredFields()) {
field.setAccessible(true);
if (Objects.isNull(field.get(arg))){
continue;
}
}
return joinPoint.proceed();
}