feat(X-Pack): 数据填报插件化支持

This commit is contained in:
ulleo 2024-11-18 13:40:35 +08:00
parent ea0867a3b4
commit 70d921c907
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);
}