diff --git a/src/main/java/cc/ryanc/halo/repository/PostRepository.java b/src/main/java/cc/ryanc/halo/repository/PostRepository.java index e3a37de55..acc4ff19a 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(); /**