Browse Source

REPORT-44410 加个判断

bugfix/10.0
hades 4 years ago
parent
commit
9f45188d6e
  1. 10
      designer-base/src/main/java/com/fr/design/DesignModelAdapter.java

10
designer-base/src/main/java/com/fr/design/DesignModelAdapter.java

@ -281,11 +281,17 @@ public abstract class DesignModelAdapter<T extends BaseBook, S extends JTemplate
TableData tableData,
Map<String, ParameterProvider> map,
Filter<ParameterProvider> filter) {
ParameterProvider[] providers = null;
if (!ComparatorUtils.equals(oldName, tdName)) {
// 更新下缓存名称 替换下数据集名称
ParameterProvider[] providers = tableDataParametersMap.remove(oldName);
providers = tableDataParametersMap.remove(oldName);
if (providers != null) {
tableDataParametersMap.put(tdName, providers);
}
}
try {
for (Map.Entry<String, ParameterProvider[]> entry : tableDataParametersMap.entrySet()) {
@ -309,9 +315,11 @@ public abstract class DesignModelAdapter<T extends BaseBook, S extends JTemplate
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
if (providers != null) {
// 更新缓存
tableDataParametersMap.put(tdName, providers);
}
}
protected void addGlobalParameters(Map<String, ParameterProvider> map) {
// 添加全局参数

Loading…
Cancel
Save