Skip to content

Commit

Permalink
[!HOTFIX] ReportRecommend 관련 SQL이 서울 시간 적용 안된 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JeonHaeseung committed Jul 19, 2024
1 parent 20c143f commit 32d5469
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface ReportActivityRepository extends JpaRepository<ReportActivity,
// 특정 맴버의 오늘 하루 생성된 데이터만 반환
@Query( value = "SELECT * FROM report_activity " +
"WHERE member_id = :memberId " +
"AND DATE(CONVERT_TZ(created_date, '+00:00', '+09:00')) = CURDATE() " +
"AND DATE(CONVERT_TZ(created_date, '+00:00', '+09:00')) = DATE(CONVERT_TZ(NOW(), '+00:00', '+09:00')) " +
"ORDER BY created_date ASC",
nativeQuery = true)
List<ReportActivity> findTodayReportActivityByMember_Id(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public interface ReportRecommendRepository extends JpaRepository<ReportRecommend
// 특정 맴버의 오늘 하루 생성된 한줄 추천 데이터만 반환
@Query( value = "SELECT * FROM report_recommend " +
"WHERE member_id = :memberId " +
"AND DATE(CONVERT_TZ(created_date, '+00:00', '+09:00')) = CURDATE() " +
"AND DATE(CONVERT_TZ(created_date, '+00:00', '+09:00')) = DATE(CONVERT_TZ(NOW(), '+00:00', '+09:00')) " +
"ORDER BY created_date ASC",
nativeQuery = true)
List<ReportRecommend> findTodayReportRecommendByMember_Id(
Expand Down

0 comments on commit 32d5469

Please sign in to comment.