forked from github/dataease
fix(图表): 修复图表的数据集切换后,数据集中的计算参数未跟随切换,显示的还是之前数据集的计算参数问题 #12196
This commit is contained in:
parent
1a59f212c3
commit
7d4e07a732
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user