From 5f95797faa596f729f4180923f12e42f623e729f Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 11 Aug 2021 13:31:12 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=B8=93=E9=A2=98=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/rymcu/forest/service/impl/PortfolioServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/rymcu/forest/service/impl/PortfolioServiceImpl.java b/src/main/java/com/rymcu/forest/service/impl/PortfolioServiceImpl.java index e82539e..ea40a5f 100644 --- a/src/main/java/com/rymcu/forest/service/impl/PortfolioServiceImpl.java +++ b/src/main/java/com/rymcu/forest/service/impl/PortfolioServiceImpl.java @@ -45,6 +45,8 @@ public class PortfolioServiceImpl extends AbstractService implements Author author = userService.selectAuthor(userDTO.getIdUser()); list.forEach(portfolioDTO -> { genPortfolioAuthor(portfolioDTO,author); + Integer articleNumber = portfolioMapper.selectCountArticleNumber(portfolioDTO.getIdPortfolio()); + portfolioDTO.setArticleNumber(articleNumber); }); return list; }