Commit 640278ca by zhiwj

修改bug

parent 9e8439d0
......@@ -112,15 +112,13 @@ public class ProblemExportController extends DownloadUtils {
problemQO.setCurrentPage(pageNum);
problemQO.setPageSize(1000);
ServiceResponse<Page<ProblemDTO>> result = problemManageApiService.listProblem(problemQO);
boolean hasReplyTime = fieldCodeList.contains("replyTime");
boolean hasReplyMemberContent = fieldCodeList.contains("replyMemberContent");
boolean hasReplyUserContent = fieldCodeList.contains("replyUserContent");
if (CollectionUtils.isNotEmpty(result.getResult().getResult())) {
for(ProblemDTO problemDTO : result.getResult().getResult()) {
if (hasReplyTime || hasReplyMemberContent || hasReplyUserContent) {
if (hasReplyUserContent) {
problemDTO = problemManageApiService.getProblem(problemDTO.getProblemId()).getResult();
}
if (hasReplyMemberContent) {
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()))
......
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