打印日志
This commit is contained in:
parent
bfdb6c6977
commit
3ba4de4414
@ -108,7 +108,7 @@ public class DataScopeInterceptor extends JsqlParserSupport implements InnerInte
|
|||||||
Method[] declaredMethods = clazz.getDeclaredMethods();
|
Method[] declaredMethods = clazz.getDeclaredMethods();
|
||||||
Optional<DataScope> dsOption = Arrays.stream(declaredMethods).filter(method -> method.getName().equals(methodName)).map(method -> method.getAnnotation(DataScope.class)).filter(Objects::nonNull).findFirst();
|
Optional<DataScope> dsOption = Arrays.stream(declaredMethods).filter(method -> method.getName().equals(methodName)).map(method -> method.getAnnotation(DataScope.class)).filter(Objects::nonNull).findFirst();
|
||||||
annotation = dsOption.orElseGet(() -> clazz.getAnnotation(DataScope.class));
|
annotation = dsOption.orElseGet(() -> clazz.getAnnotation(DataScope.class));
|
||||||
log.debug("执行mapper方法: {} # {}", clazz.getName(), methodName);
|
log.debug("mapper查询方法: {} # {}", clazz.getName(), methodName);
|
||||||
if (findIgnoreDataScope(parameter, annotation) && isNotSqlTest()) {
|
if (findIgnoreDataScope(parameter, annotation) && isNotSqlTest()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user