From badf9adfd807d3e6f010cb6499990f8955435246 Mon Sep 17 00:00:00 2001 From: RYAN0UP_ Date: Fri, 4 Jan 2019 17:23:13 +0800 Subject: [PATCH] Update PostRepository.java --- src/main/java/cc/ryanc/halo/repository/PostRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/ryanc/halo/repository/PostRepository.java b/src/main/java/cc/ryanc/halo/repository/PostRepository.java index acc4ff19a..f6926047e 100644 --- a/src/main/java/cc/ryanc/halo/repository/PostRepository.java +++ b/src/main/java/cc/ryanc/halo/repository/PostRepository.java @@ -234,7 +234,7 @@ public interface PostRepository extends JpaRepository { * * @return Long */ - @Query(value = "SELECT SUM(POST_VIEWS) FROM halo_post", nativeQuery = true) + @Query(value = "SELECT SUM(post_views) FROM halo_post", nativeQuery = true) Long getPostViewsSum(); /**