pull/708/head
Ryan Wang 2020-03-22 22:15:52 +08:00 committed by GitHub
parent bee21d7de8
commit ac52e7f677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class StatisticServiceImpl implements StatisticService {
@Override
public StatisticDTO getStatistic() {
StatisticDTO statisticDTO = new StatisticDTO();
statisticDTO.setPostCount(postService.countByStatus(PostStatus.PUBLISHED) + sheetService.countByStatus(PostStatus.PUBLISHED));
statisticDTO.setPostCount(postService.countByStatus(PostStatus.PUBLISHED));
// Handle comment count
long postCommentCount = postCommentService.countByStatus(CommentStatus.PUBLISHED);