mirror of https://github.com/halo-dev/halo
parent
bee21d7de8
commit
ac52e7f677
|
@ -68,7 +68,7 @@ public class StatisticServiceImpl implements StatisticService {
|
||||||
@Override
|
@Override
|
||||||
public StatisticDTO getStatistic() {
|
public StatisticDTO getStatistic() {
|
||||||
StatisticDTO statisticDTO = new StatisticDTO();
|
StatisticDTO statisticDTO = new StatisticDTO();
|
||||||
statisticDTO.setPostCount(postService.countByStatus(PostStatus.PUBLISHED) + sheetService.countByStatus(PostStatus.PUBLISHED));
|
statisticDTO.setPostCount(postService.countByStatus(PostStatus.PUBLISHED));
|
||||||
|
|
||||||
// Handle comment count
|
// Handle comment count
|
||||||
long postCommentCount = postCommentService.countByStatus(CommentStatus.PUBLISHED);
|
long postCommentCount = postCommentService.countByStatus(CommentStatus.PUBLISHED);
|
||||||
|
|
Loading…
Reference in New Issue