package com.qianwen.core.mp.plugins;
|
|
import org.apache.ibatis.executor.Executor;
|
import org.apache.ibatis.mapping.BoundSql;
|
import org.apache.ibatis.mapping.MappedStatement;
|
import org.apache.ibatis.session.ResultHandler;
|
import org.apache.ibatis.session.RowBounds;
|
import com.qianwen.core.mp.intercept.QueryInterceptor;
|
import com.qianwen.core.tool.utils.ObjectUtil;
|
|
/* loaded from: blade-starter-mybatis-9.3.0.0-SNAPSHOT.jar:org/springblade/core/mp/plugins/QueryInterceptorExecutor.class */
|
public class QueryInterceptorExecutor {
|
/* JADX INFO: Access modifiers changed from: package-private */
|
public static void exec(QueryInterceptor[] interceptors, Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws Throwable {
|
if (ObjectUtil.isEmpty(interceptors)) {
|
return;
|
}
|
for (QueryInterceptor interceptor : interceptors) {
|
interceptor.intercept(executor, ms, parameter, rowBounds, resultHandler, boundSql);
|
}
|
}
|
}
|