forked from github/dataease
Merge pull request #12311 from dataease/pr@dev2@fixds
fix: 下载视图原始数据时,不计算聚合字段
This commit is contained in:
commit
248aedef2f
@ -89,11 +89,12 @@ public class TableInfoHandler extends DefaultChartHandler {
|
||||
if(view.getIsExcelExport()){
|
||||
for (int i = 0; i < xAxis.size(); i++) {
|
||||
ChartViewFieldDTO fieldDTO = null;
|
||||
for (int i1 = 0; i1 < allFields.size(); i1++) {
|
||||
if (allFields.get(i1).getId().equals(xAxis.get(i).getId())) {
|
||||
fieldDTO = allFields.get(i1);
|
||||
for (ChartViewFieldDTO allField : allFields) {
|
||||
if (allField.getId().equals(xAxis.get(i).getId())) {
|
||||
fieldDTO = allField;
|
||||
}
|
||||
}
|
||||
assert fieldDTO != null;
|
||||
if (fieldDTO.isAgg()) {
|
||||
sqlMeta.getXFields().get(i).setFieldName("'-'");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user