mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
feat: 支持 TableConfig 匹配全表。
This commit is contained in:
parent
0d09b0d1a2
commit
4bbc2b3ed2
@ -87,6 +87,7 @@ public class StrategyConfig {
|
||||
public Set<String> getIgnoreColumns() {
|
||||
return ignoreColumns;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置需要忽略的列 全局配置。
|
||||
*/
|
||||
@ -121,7 +122,8 @@ public class StrategyConfig {
|
||||
* 获取表配置。
|
||||
*/
|
||||
public TableConfig getTableConfig(String tableName) {
|
||||
return tableConfigMap == null ? null : tableConfigMap.get(tableName);
|
||||
TableConfig tableConfig = tableConfigMap == null ? null : tableConfigMap.get(tableName);
|
||||
return tableConfig != null ? tableConfig : tableConfigMap.get(TableConfig.ALL_TABLES);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -190,7 +192,7 @@ public class StrategyConfig {
|
||||
setTableConfig(tableConfig);
|
||||
}
|
||||
|
||||
tableConfig.addColumnConfig(columnConfig);
|
||||
tableConfig.setColumnConfig(columnConfig);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user