Skip to content

Commit c69d2fa

Browse files
authored
Merge pull request dataease#13850 from dataease/dev-v2
merge
2 parents 5e26254 + f2f2abf commit c69d2fa

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

core/core-backend/src/main/java/io/dataease/chart/server/ChartDataServer.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,12 @@ public ChartViewDTO findExcelData(ChartExcelRequest request) {
116116
}
117117
int curLimit = Math.toIntExact(ExportCenterUtils.getExportLimit("view"));
118118
int curDsLimit = Math.toIntExact(ExportCenterUtils.getExportLimit("dataset"));
119+
int viewLimit = Math.min(curLimit, curDsLimit);
119120
if (ChartConstants.VIEW_RESULT_MODE.CUSTOM.equals(viewDTO.getResultMode())) {
120121
Integer limitCount = viewDTO.getResultCount();
121-
viewDTO.setResultCount(Math.min(curLimit, limitCount));
122+
viewDTO.setResultCount(Math.min(viewLimit, limitCount));
122123
} else {
123-
// 普通导出取图表限制 原始明细导出时 取图表和数据集限制最小的值
124-
if("dataset".equals(request.getDownloadType())){
125-
viewDTO.setResultCount(Math.min(curLimit,curDsLimit));
126-
}else{
127-
viewDTO.setResultCount(curLimit);
128-
}
124+
viewDTO.setResultCount(viewLimit);
129125
}
130126
chartViewInfo = getData(viewDTO);
131127
List<Object[]> tableRow = (List) chartViewInfo.getData().get("sourceData");

0 commit comments

Comments
 (0)