打印日志

This commit is contained in:
guoshengxiong 2024-05-25 14:01:30 +08:00
parent bfdb6c6977
commit 3ba4de4414

View File

@ -108,7 +108,7 @@ public class DataScopeInterceptor extends JsqlParserSupport implements InnerInte
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();
annotation = dsOption.orElseGet(() -> clazz.getAnnotation(DataScope.class));
log.debug("执行mapper方法: {} # {}", clazz.getName(), methodName);
log.debug("mapper查询方法: {} # {}", clazz.getName(), methodName);
if (findIgnoreDataScope(parameter, annotation) && isNotSqlTest()) {
return;
}