mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
commit
0295e9e77c
@ -33,13 +33,13 @@ public class ExtDDLProviderFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ExtDDLProvider getInstance(String type) {
|
public static ExtDDLProvider getInstance(String type) {
|
||||||
if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
|
//if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
|
||||||
String key = "df_" + type;
|
String key = "df_" + type;
|
||||||
return templateMap.get(key);
|
return templateMap.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void loadPlugin(String type, DataFillingPlugin plugin) {
|
public static void loadPlugin(String type, DataFillingPlugin plugin) {
|
||||||
if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
|
//if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
|
||||||
String key = "df_" + type;
|
String key = "df_" + type;
|
||||||
if (templateMap.containsKey(key)) return;
|
if (templateMap.containsKey(key)) return;
|
||||||
templateMap.put(key, plugin);
|
templateMap.put(key, plugin);
|
||||||
@ -53,7 +53,7 @@ public class ExtDDLProviderFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static List<XpackPluginsDfVO> getDfConfigList() {
|
public static List<XpackPluginsDfVO> getDfConfigList() {
|
||||||
if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
|
//if (!LicenseUtil.licenseValid()) DEException.throwException("插件功能只对企业版本可用!");
|
||||||
return templateMap.values().stream().map(DataFillingPlugin::getConfig).toList();
|
return templateMap.values().stream().map(DataFillingPlugin::getConfig).toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,4 +46,7 @@ public abstract class ExtDDLProvider {
|
|||||||
public abstract String whereSql(String tableName, List<TableField> searchFields);
|
public abstract String whereSql(String tableName, List<TableField> searchFields);
|
||||||
|
|
||||||
public abstract String getLowerCaseTaleNames();
|
public abstract String getLowerCaseTaleNames();
|
||||||
|
|
||||||
|
public abstract Integer getColumnType(String name);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user