mp增加逻辑删除配置

This commit is contained in:
smallchill 2018-12-29 17:19:11 +08:00
parent 946fcbfadc
commit ef0434fdcd

View File

@ -16,11 +16,12 @@
package org.springblade.core.boot.config; package org.springblade.core.boot.config;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler; import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor; import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor; import com.baomidou.mybatisplus.extension.plugins.PerformanceInterceptor;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springblade.core.mp.BladeMetaObjectHandler;
import org.springblade.core.launch.constant.AppConstant; import org.springblade.core.launch.constant.AppConstant;
import org.springblade.core.mp.BladeMetaObjectHandler;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile; import org.springframework.context.annotation.Profile;
@ -44,6 +45,11 @@ public class MybatisPlusConfiguration {
return new BladeMetaObjectHandler(); return new BladeMetaObjectHandler();
} }
@Bean
public LogicSqlInjector logicSqlInjector() {
return new LogicSqlInjector();
}
/** /**
* SQL执行效率插件 * SQL执行效率插件
* *