...
This commit is contained in:
parent
22391d1fc6
commit
73e824fe7d
|
@ -59,6 +59,7 @@ public class ActivitiNoticeAspect {
|
||||||
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
|
||||||
Method method = joinPoint.getTarget().getClass().getDeclaredMethod(signature.getName(), signature.getParameterTypes());
|
Method method = joinPoint.getTarget().getClass().getDeclaredMethod(signature.getName(), signature.getParameterTypes());
|
||||||
final ActivitiNoticeOperation activitiNoticeOperation = method.getAnnotation(ActivitiNoticeOperation.class);
|
final ActivitiNoticeOperation activitiNoticeOperation = method.getAnnotation(ActivitiNoticeOperation.class);
|
||||||
|
logger.error("切面类型:" + activitiNoticeOperation.type());
|
||||||
switch (activitiNoticeOperation.type()) {
|
switch (activitiNoticeOperation.type()) {
|
||||||
case 1: {
|
case 1: {
|
||||||
Arrays.asList(joinPoint.getArgs()).stream().findFirst().ifPresent(arg -> {
|
Arrays.asList(joinPoint.getArgs()).stream().findFirst().ifPresent(arg -> {
|
||||||
|
|
Loading…
Reference in New Issue