fix: 【FCJDFDXTXS-199】资源学习情况导出调试

This commit is contained in:
liu.zixi
2025-12-19 11:39:49 +08:00
parent 2ef1901b54
commit cd11b70b0f

View File

@@ -1544,13 +1544,13 @@ public class StudyCourseApi extends ApiBaseController{
ExportsExcelSenderUtil.exportDynamic(exportMap, dataList, outputStream, "yyyy-MM-dd HH:mm:ss");
}
} catch (Exception e) {
log.error("【资源学习情况导出-考试信息】导出资源学习情况错误:{}", e.getMessage());
log.error("【资源学习情况导出-考试信息】导出资源学习情况错误", e);
} finally {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
log.error("【资源学习情况导出-考试信息】关闭输出流失败:{}", e.getMessage());
log.error("【资源学习情况导出-考试信息】关闭输出流失败", e);
}
}
}
@@ -1800,13 +1800,13 @@ public class StudyCourseApi extends ApiBaseController{
tempExcelFile.delete();
}
} catch (Exception e) {
log.error("【资源学习情况导出-作业信息】导出资源学习情况错误:{}", e.getMessage());
log.error("【资源学习情况导出-作业信息】导出资源学习情况错误", e);
} finally {
if (outputStream != null) {
try {
outputStream.close();
} catch (IOException e) {
log.error("关闭输出流失败:{}", e.getMessage());
log.error("关闭输出流失败", e);
}
}
}
@@ -1827,7 +1827,7 @@ public class StudyCourseApi extends ApiBaseController{
}
return success(rs);
}catch(Exception e) {
log.error("查询课程学习记录错误",e.getMessage());
log.error("查询课程学习记录错误",e);
return error("查询失败",e.getMessage());
}
}
@@ -1862,7 +1862,7 @@ public class StudyCourseApi extends ApiBaseController{
try {
service.deleteSignUp(id,courseId,studentId);
} catch (Exception e) {
log.error("删除报名信息失败",e.getMessage());
log.error("删除报名信息失败",e);
return error("删除失败",e.getMessage());
}