OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-17 145928e42a8ae18129fcbc720824a9e4f78999bd
src/main/java/kr/wisestone/owl/service/impl/IssueCommentServiceImpl.java
@@ -133,7 +133,14 @@
    @Override
    @Transactional(readOnly = true)
    public List<IssueCommentVo> findIssueComment(Long issueId) {
        return this.issueCommentRepository.findByIssueId(issueId);
        List<IssueCommentVo> issueCommentVos = this.issueCommentRepository.findByIssueId(issueId);
        Issue issue = this.issueService.getIssue(issueId);
        if (issueCommentVos != null && issueCommentVos.size() > 0) {
            for (IssueCommentVo issueCommentVo : issueCommentVos) {
                issueCommentVo.setTitle(issue.getTitle());
            }
        }
        return issueCommentVos;
    }
}