|
@@ -17,7 +17,7 @@ import org.springframework.context.annotation.Configuration;
|
|
|
@MapperScan("com.ozs.*.mapper")
|
|
|
public class CipherMybatisPlusConfig {
|
|
|
|
|
|
- @Value("${base.sql-type:mysql}")
|
|
|
+ @Value("${base.sql-type:kingbasees}")
|
|
|
private String type;
|
|
|
|
|
|
|
|
@@ -26,7 +26,7 @@ public class CipherMybatisPlusConfig {
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
|
|
|
// 自定义拦截器,先添加先执行。
|
|
|
- if (type.equals(DbType.POSTGRE_SQL.getDb())) {
|
|
|
+ if (type.equals(DbType.KINGBASE_ES.getDb())) {
|
|
|
interceptor.addInnerInterceptor(new PostgreSqlMybatisIntercepts());
|
|
|
}
|
|
|
|