Commit 7b955843 by zhiwj

咨询建议

parent d833439b
......@@ -109,6 +109,11 @@ public class ProblemOutApiServiceImpl implements ProblemOutApiService {
problemDTO.setImgList(list);
}
List<ProblemReplyDTO> replyList = problemReplyService.listReply(problemId);
for (ProblemReplyDTO problemReplyDTO : replyList) {
List<TabProblemImg> tabProblemImgs = problemImgService.listImageByProblemReplyId(problemReplyDTO.getProblemReplyId());
List<String> imgList = Optional.ofNullable(tabProblemImgs).orElse(Collections.emptyList()).stream().map(TabProblemImg::getImgUrl).collect(Collectors.toList());
problemReplyDTO.setImgList(imgList);
}
problemDTO.setReplyList(replyList);
return EnterpriseServiceResponse.success(problemDTO);
}
......
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