Java Code Examples for com.baomidou.mybatisplus.core.injector.ISqlInjector

The following examples show how to use com.baomidou.mybatisplus.core.injector.ISqlInjector. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: admin-plus   Source File: MybatisPlusConfig.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 逻辑删除
 * @return
 */
@Bean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}
 
Example 2
/**
 * 逻辑删除插件
 *
 * @return LogicSqlInjector
 */
@Bean
@ConditionalOnMissingBean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}
 
Example 3
Source Project: plumemo   Source File: MybatisPlusConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public ISqlInjector sqlInjector() {
    return new DefaultSqlInjector();
}
 
Example 4
@Bean
public ISqlInjector sqlInjector() {
    return new MySqlInjector();
}
 
Example 5
Source Project: SpringBoot2.0   Source File: MybatisConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}
 
Example 6
/**
 * 逻辑删除
 *
 * @return ISqlInjector
 */
@Bean
@ConditionalOnMissingBean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}
 
Example 7
/**
 * 注入sql注入器
 */
@Bean
public ISqlInjector sqlInjector(){
    return new LogicSqlInjector();
}
 
Example 8
/**
 * 注入sql注入器
 */
@Bean
public ISqlInjector sqlInjector(){
    return new LogicSqlInjector();
}
 
Example 9
Source Project: SpringCloud   Source File: MybatisConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}
 
Example 10
Source Project: SpringCloud   Source File: MybatisConfig.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 初使化Mybatis审计字段自动赋值的interceptor
 */
@Bean
public ISqlInjector sqlInjector() {
    return new LogicSqlInjector();
}
 
Example 11
/**
 * 逻辑删除
 *
 * @return
 */
@Bean
public ISqlInjector sqlInjector() {
	return new LogicSqlInjector();
}
 
Example 12
Source Project: datax-web   Source File: MybatisPlusConfig.java    License: MIT License 2 votes vote down vote up
/**
 * MyBatisPlus逻辑删除 ,需要在 yml 中配置开启
 * 3.0.7.1版本的LogicSqlInjector里面什么都没做只是 extends DefaultSqlInjector
 * 以后版本直接去的了LogicSqlInjector
 *
 * @return
 */
@Bean
public ISqlInjector sqlInjector() {
    return new DefaultSqlInjector();
}