mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-25 02:32:57 +08:00
fix: 【FCJDFDXTXS-199】资源学习情况导出调试
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user