Commit f9d6132c by zhiwj

修改bug

parent 640278ca
......@@ -103,7 +103,6 @@ public class ProblemExportController extends DownloadUtils {
Integer reportId = DataDownloadUtils.createDownloadReport(report);
String path = request.getSession().getServletContext().getRealPath("/excel/csv/collaborator/file/");
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DateUtil.FORMAT_DATETIME_19);
ExecutorPoolSingleton.getInstance().executeTask(() -> {
DownloadDataLoader<ProblemDTO> loader = new DownloadDataLoader<ProblemDTO>() {
@Override
......@@ -117,12 +116,11 @@ public class ProblemExportController extends DownloadUtils {
for(ProblemDTO problemDTO : result.getResult().getResult()) {
if (hasReplyUserContent) {
problemDTO = problemManageApiService.getProblem(problemDTO.getProblemId()).getResult();
}
if (hasReplyUserContent) {
List<ProblemReplyDTO> replyList = problemDTO.getReplyList();
List<String> replyUserContentList = Optional.ofNullable(replyList).orElse(Collections.emptyList()).stream()
.filter(e -> ReplyerTypeEnum.USER.getCode().equals(e.getReplyerType()))
.map(e -> simpleDateFormat.format(e.getReplyContent()))
.map(ProblemReplyDTO::getReplyContent)
.collect(Collectors.toList());
StringBuilder sb = new StringBuilder();
for (int i = 0; i < replyUserContentList.size(); i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment