| | |
| | | } |
| | | Article byId = articleMapper.selectById(articleCommentsDTO.getArticleId()); |
| | | byId.setCommentCount(byId.getCommentCount()+1); |
| | | byId.setReadStatus(byId.getReadStatus() == 2 ? 1 : 2); |
| | | articleMapper.updateById(byId); |
| | | this.saveOrUpdate(articleComments); |
| | | } |
| | |
| | | * @return PageDTO<MgtArticleCommentsVO> |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public PageDTO<MgtArticleCommentsVO> getArticleCommentsPage(MgtArticleCommentsQuery query) { |
| | | PageDTO<MgtArticleCommentsVO> result; |
| | | Set<Long> memberIdSet = null; |
| | |
| | | }); |
| | | result = pageVO; |
| | | } |
| | | |
| | | // 修改查看评论状态 |
| | | Article article = articleMapper.selectById(query.getArticleId()); |
| | | article.setReadStatus(2); |
| | | articleMapper.updateById(article); |
| | | return result; |
| | | } |
| | | |