|
@@ -104,7 +104,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
examRecords = ExamStudentEntityConvert.ofExcel(examStudentInfoList);
|
|
examRecords = ExamStudentEntityConvert.ofExcel(examStudentInfoList);
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error(e.getMessage());
|
|
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
if (e instanceof StatusException) {
|
|
if (e instanceof StatusException) {
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
((StatusException) e).getDesc());
|
|
((StatusException) e).getDesc());
|
|
@@ -124,7 +124,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
tempFile.getParentFile().mkdirs();
|
|
tempFile.getParentFile().mkdirs();
|
|
tempFile.createNewFile();
|
|
tempFile.createNewFile();
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
- log.error(e.getMessage());
|
|
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -181,7 +181,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
}
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error(e.getMessage());
|
|
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
if (e instanceof StatusException) {
|
|
if (e instanceof StatusException) {
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
((StatusException) e).getDesc());
|
|
((StatusException) e).getDesc());
|
|
@@ -200,7 +200,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
tempFile.getParentFile().mkdirs();
|
|
tempFile.getParentFile().mkdirs();
|
|
tempFile.createNewFile();
|
|
tempFile.createNewFile();
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
- log.error(e.getMessage());
|
|
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -254,7 +254,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- log.error(e.getMessage());
|
|
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
if (e instanceof StatusException) {
|
|
if (e instanceof StatusException) {
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR,
|
|
((StatusException) e).getDesc());
|
|
((StatusException) e).getDesc());
|
|
@@ -273,7 +273,7 @@ public class AsyncExportServiceImpl implements AsyncExportService {
|
|
tempFile.getParentFile().mkdirs();
|
|
tempFile.getParentFile().mkdirs();
|
|
tempFile.createNewFile();
|
|
tempFile.createNewFile();
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
- log.error(e.getMessage());
|
|
|
|
|
|
+ log.error(e.getMessage(),e);
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
exportTaskService.updateExportTaskStatus(taskId, ExportTaskStatus.ERROR, "生成导出文件异常");
|
|
return;
|
|
return;
|
|
}
|
|
}
|