'新增导出功能'

This commit is contained in:
2019-04-24 17:36:55 +08:00
parent e13588f3ab
commit 936d4dc992
9 changed files with 162 additions and 173 deletions

View File

@@ -369,15 +369,13 @@ public class MetaKit {
}
@Comment("业务导出表头配置")
public Kv cfgExport(String name, String token) {
public static Kv cfgExport(String name, String token) {
MetaService metaService = getMetaService(name, token);
Kv<String, MetaTable> tables = getMetaTables(metaService, true);
List<Map<String,String>> exports = metaService.getExports();
Kv kv = Kv.of();
Kv kv = Kv.of(); // {col:label}
exports.forEach(x -> {
kv.put(x.get("col"), x.get("lable"));
kv.put(x.get("col"), x.get("label"));
});
return kv;
}