fix: 导出数据失败

This commit is contained in:
taojinlong 2024-06-11 11:51:34 +08:00
parent b7aa5ed958
commit 9d3e84fab2

View File

@ -388,6 +388,7 @@ public class ExportCenterService {
String dataPath = exportData_path + exportTask.getId();
File directory = new File(dataPath);
boolean isCreated = directory.mkdir();
CurrentUserDto currentUserDto = AuthUtils.getUser();
Future future = scheduledThreadPoolExecutor.submit(() -> {
try {
exportTask.setExportStatus("IN_PROGRESS");
@ -542,7 +543,7 @@ public class ExportCenterService {
}
wb.close();
if (ObjectUtils.isNotEmpty(AuthUtils.getUser())) {
if (ObjectUtils.isNotEmpty(currentUserDto)) {
String viewId = request.getViewId();
ChartViewWithBLOBs chartViewWithBLOBs = chartViewService.get(viewId);
String pid = chartViewWithBLOBs.getSceneId();