逻辑删全局配置(实体类未配置
This commit is contained in:
parent
965ab735b2
commit
96213adec5
@ -8,4 +8,6 @@ public interface EbikeContents {
|
||||
|
||||
String TENANT_ID = "operator_id";
|
||||
|
||||
String LOGIC_DELETE = "is_deleted";
|
||||
|
||||
}
|
||||
|
||||
@ -42,6 +42,9 @@ public class MyBatisFlexConfiguration {
|
||||
keyConfig.setBefore(true);
|
||||
|
||||
globalConfig.setTenantColumn(EbikeContents.TENANT_ID);
|
||||
|
||||
FlexGlobalConfig.getDefaultConfig().setLogicDeleteColumn(EbikeContents.LOGIC_DELETE);
|
||||
|
||||
globalConfig.setKeyConfig(keyConfig);
|
||||
//方言配置
|
||||
globalConfig.setDbType(DbType.POSTGRE_SQL); // 关键配置
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user