Update PostRepository.java

pull/78/head
RYAN0UP_ 2019-01-04 17:22:36 +08:00 committed by GitHub
parent 5913a40684
commit 13ad7c3884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ public interface PostRepository extends JpaRepository<Post, Long> {
*
* @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();
/**