fix(图表): 修复图表的数据集切换后,数据集中的计算参数未跟随切换,显示的还是之前数据集的计算参数问题 #12196

This commit is contained in:
wangjiahao 2024-09-24 11:14:40 +08:00
parent 1a59f212c3
commit 7d4e07a732

View File

@ -371,10 +371,7 @@ public class ChartDataManage {
provider = ProviderFactory.getProvider(dsMap.entrySet().iterator().next().getValue().getType());
}
if (ObjectUtils.isEmpty(view.getCalParams())) {
view.setCalParams(Utils.getParams(transFields(allFields)));
}
view.setCalParams(Utils.getParams(transFields(allFields)));
SQLMeta sqlMeta = new SQLMeta();
Table2SQLObj.table2sqlobj(sqlMeta, null, "(" + sql + ")", crossDs);
CustomWhere2Str.customWhere2sqlObj(sqlMeta, fieldCustomFilter, transFields(allFields), crossDs, dsMap, Utils.getParams(transFields(allFields)), view.getCalParams(), pluginManage);