Merge pull request #13379 from ulleo/dev-v2

feat(X-Pack): 数据填报插件化支持
This commit is contained in:
Junjun 2024-11-18 13:43:55 +08:00 committed by GitHub
commit 0295e9e77c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -33,13 +33,13 @@ public class ExtDDLProviderFactory {
}
public static ExtDDLProvider getInstance(String type) {
if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
//if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
String key = "df_" + type;
return templateMap.get(key);
}
public static void loadPlugin(String type, DataFillingPlugin plugin) {
if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
//if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
String key = "df_" + type;
if (templateMap.containsKey(key)) return;
templateMap.put(key, plugin);
@ -53,7 +53,7 @@ public class ExtDDLProviderFactory {
}
public static List<XpackPluginsDfVO> getDfConfigList() {
if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
//if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
return templateMap.values().stream().map(DataFillingPlugin::getConfig).toList();
}

View File

@ -46,4 +46,7 @@ public abstract class ExtDDLProvider {
public abstract String whereSql(String tableName, List<TableField> searchFields);
public abstract String getLowerCaseTaleNames();
public abstract Integer getColumnType(String name);
}