🎨 专题接口变更

This commit is contained in:
ronger 2021-08-11 13:31:12 +08:00
parent 745389caae
commit 5f95797faa

View File

@ -45,6 +45,8 @@ public class PortfolioServiceImpl extends AbstractService<Portfolio> implements
Author author = userService.selectAuthor(userDTO.getIdUser()); Author author = userService.selectAuthor(userDTO.getIdUser());
list.forEach(portfolioDTO -> { list.forEach(portfolioDTO -> {
genPortfolioAuthor(portfolioDTO,author); genPortfolioAuthor(portfolioDTO,author);
Integer articleNumber = portfolioMapper.selectCountArticleNumber(portfolioDTO.getIdPortfolio());
portfolioDTO.setArticleNumber(articleNumber);
}); });
return list; return list;
} }