//package com.qmth.themis.business.config;
//
//import com.baomidou.mybatisplus.annotation.DbType;
//import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;
//import com.baomidou.mybatisplus.core.config.GlobalConfig;
//import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
//import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
//import com.qmth.themis.business.base.CustomizedSqlInjector;
//import org.mybatis.spring.annotation.MapperScan;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @Description: mybatis-plus配置
// * @Param:
// * @return:
// * @Author: wangliang
// * @Date: 2022/5/11
// */
//@Configuration
//@MapperScan(basePackages = {"com.qmth.themis.business.dao"})
//public class MybatisPlusConfig {
//
//    /**
//     * 自动填充功能
//     *
//     * @return
//     */
//    @Bean
//    public GlobalConfig globalConfig() {
//        GlobalConfig globalConfig = new GlobalConfig();
//        globalConfig.setMetaObjectHandler(new MetaHandler());
//        return globalConfig;
//    }
//
//    @Bean
//    public MybatisPlusInterceptor mybatisPlusInterceptor() {
//        MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
//        interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
//        return interceptor;
//    }
//
//    @Bean
//    public ConfigurationCustomizer configurationCustomizer() {
//        return configuration -> configuration.setUseDeprecatedExecutor(false);
//    }
//
//    @Bean
//    public CustomizedSqlInjector customizedSqlInjector() {
//        return new CustomizedSqlInjector();
//    }
//}
