File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
core/core-backend/src/main/java/io/dataease/chart/server Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,12 @@ public ChartViewDTO findExcelData(ChartExcelRequest request) {
116
116
}
117
117
int curLimit = Math .toIntExact (ExportCenterUtils .getExportLimit ("view" ));
118
118
int curDsLimit = Math .toIntExact (ExportCenterUtils .getExportLimit ("dataset" ));
119
+ int viewLimit = Math .min (curLimit , curDsLimit );
119
120
if (ChartConstants .VIEW_RESULT_MODE .CUSTOM .equals (viewDTO .getResultMode ())) {
120
121
Integer limitCount = viewDTO .getResultCount ();
121
- viewDTO .setResultCount (Math .min (curLimit , limitCount ));
122
+ viewDTO .setResultCount (Math .min (viewLimit , limitCount ));
122
123
} 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 );
129
125
}
130
126
chartViewInfo = getData (viewDTO );
131
127
List <Object []> tableRow = (List ) chartViewInfo .getData ().get ("sourceData" );
You can’t perform that action at this time.
0 commit comments