Skip to content

Commit 28aca7d

Browse files
committed
fix: 네이티브 쿼리들 수정
c.*형식으로 변경
1 parent 7118e76 commit 28aca7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/moaguide/domain/ArticleContent/ArticleContentRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface ArticleContentRepository extends JpaRepository<ArticleContent,
2727
Page<ArticleContent> findByTypeAndCategoryId(@Param("type") String type, @Param("categoryId") int categoryId, Pageable pageable);
2828

2929
// 타입별 데이터 가져오기
30-
@Query(value = "SELECT c FROM ArticleContent c WHERE c.type = :type AND c.createdAt <= CONVERT_TZ(NOW(), '+00:00', '+09:00') ORDER BY c.createdAt DESC", nativeQuery = true)
30+
@Query(value = "SELECT c.* FROM ArticleContent c WHERE c.type = :type AND c.createdAt <= CONVERT_TZ(NOW(), '+00:00', '+09:00') ORDER BY c.createdAt DESC", nativeQuery = true)
3131
Page<ArticleContent> findByTypeContent(@Param("type") String type, Pageable pageable);
3232

3333
// 최신 기준 데이터 가져오기

0 commit comments

Comments
 (0)