| | |
| | | import com.ruoyi.article.controller.forepart.dto.ArticleDTO; |
| | | import com.ruoyi.article.controller.forepart.vo.ArticleCommentsVO; |
| | | import com.ruoyi.article.controller.forepart.vo.ArticleVO; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleAuditDTO; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleDTO; |
| | | import com.ruoyi.article.controller.management.dto.MgtArticleQuery; |
| | | import com.ruoyi.article.controller.management.vo.MgtArticleVO; |
| | |
| | | } |
| | | return BeanUtils.copyBean(article, MgtArticleVO.class); |
| | | } |
| | | |
| | | /** |
| | | * 资讯审核 |
| | | * |
| | | * @param dto 管理后台-资讯审核传输对象 |
| | | */ |
| | | @Override |
| | | public void audit(MgtArticleAuditDTO dto) { |
| | | Article article = this.getById(dto.getId()); |
| | | if (StringUtils.isNull(article)) { |
| | | throw new ServiceException("资讯不存在"); |
| | | } |
| | | article.setStatus(dto.getStatus()); |
| | | this.updateById(article); |
| | | } |
| | | } |