|
|
@@ -59,6 +59,7 @@ public class EntityHelper { |
|
|
|
ModelTable table = ModelTableCache.getInstance().getByName(tableName); |
|
|
|
if (table == null) return; |
|
|
|
loadBeanLink(table, bean, mapFieldAlias); |
|
|
|
setFieldDisplayText(table, bean, mapFieldAlias); |
|
|
|
} |
|
|
|
|
|
|
|
private static void loadBeanLink(ModelTable table, SwMap bean, Map<String, String> mapFieldAlias) { |
|
|
@@ -118,10 +119,14 @@ public class EntityHelper { |
|
|
|
} |
|
|
|
|
|
|
|
public static void loadBeanText(String tableName, List<SwMap> listData, Map<String, String> mapFieldAlias) { |
|
|
|
if (listData.isEmpty()) return; |
|
|
|
//添加关联字段值 |
|
|
|
ModelTable table = ModelTableCache.getInstance().getByName(tableName); |
|
|
|
if (table == null) return; |
|
|
|
loadBeanLink(table, listData, mapFieldAlias); |
|
|
|
for (SwMap bean: listData) { |
|
|
|
setFieldDisplayText(table, bean, mapFieldAlias); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|