class EnableQuerySqlLogInnerInterceptor implements InnerInterceptor{
    private InnerInterceptor delegate;

    public EnableQuerySqlLogInnerInterceptor(InnerInterceptor delegate) {
        Assert.notNull(delegate, "委派类不能为空");
        this.delegate = delegate;
    }

    @Override
    public void beforeQuery(Executor executor, MappedStatement ms, Object parameter, RowBounds rowBounds, ResultHandler resultHandler, BoundSql boundSql) throws SQLException {<FILL_FUNCTION_BODY>}
}

        PluginUtils.MPBoundSql mpBs = PluginUtils.mpBoundSql(boundSql);
        String sql = boundSql.getSql();
        log.info("执行mapperId{},原始sql为{}", ms.getId(), sql);
        delegate.beforeQuery(executor, ms, parameter, rowBounds, resultHandler, boundSql);
        log.info("执行mapperId{}, 修改sql为{}", ms.getId(), mpBs.sql());
    
<no_super_class>