@@ -147,14 +147,33 @@ public interface PostRepository extends JpaRepository<Post,Long>{
...
@@ -147,14 +147,33 @@ public interface PostRepository extends JpaRepository<Post,Long>{
@Query(value="select * from halo_post where post_status=0 and post_type='post' and year(post_date)=:year and month(post_date)=:month order by post_date desc",countQuery="select count(*) from halo_post where post_status=0 and year(post_date)=:year and month(post_date)=:month",nativeQuery=true)
@Query(value="select * from halo_post where post_status=0 and post_type='post' and year(post_date)=:year and month(post_date)=:month order by post_date desc",countQuery="select count(*) from halo_post where post_status=0 and year(post_date)=:year and month(post_date)=:month",nativeQuery=true)
@Query(value="select * from halo_post where post_status = 0 and post_type='post' and post_title like '%=:keyword%' or post_content like '%=:keyword%'",nativeQuery=true)