mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 修复进度条计算错误
This commit is contained in:
@@ -673,7 +673,7 @@ public class ExportCenterManage implements BaseExportApi {
|
||||
sheetIndex++;
|
||||
details.clear();
|
||||
exportTask.setExportStatus("IN_PROGRESS");
|
||||
double exportRogress = (double) (i / chartViewDTO.getTotalPage() + 1);
|
||||
double exportRogress = (double) (i / (chartViewDTO.getTotalPage() + 1));
|
||||
DecimalFormat df = new DecimalFormat("#.##");
|
||||
String formattedResult = df.format((exportRogress) * 100);
|
||||
exportTask.setExportProgress(formattedResult);
|
||||
|
||||
Reference in New Issue
Block a user