diff --git a/src/main/java/bside/NotToDoClub/domain_name/moderationrecord/repository/ModerationRecordJpaRepository.java b/src/main/java/bside/NotToDoClub/domain_name/moderationrecord/repository/ModerationRecordJpaRepository.java index 7b24e97..6ce826e 100644 --- a/src/main/java/bside/NotToDoClub/domain_name/moderationrecord/repository/ModerationRecordJpaRepository.java +++ b/src/main/java/bside/NotToDoClub/domain_name/moderationrecord/repository/ModerationRecordJpaRepository.java @@ -11,7 +11,7 @@ public interface ModerationRecordJpaRepository extends JpaRepository { - @Query(value = "select m.moderation_record_id as moderationId, u.user_not_to_do_id as notToDoId, u.not_to_do_text as notToDoText, m.content as content, date_format(m.reg_dtm, '%Y-%m-%d %H:%m:%s') as regDtm, m.record_type as recordType, m.use_yn as useYn " + + @Query(value = "select m.moderation_record_id as moderationId, u.user_not_to_do_id as notToDoId, u.not_to_do_text as notToDoText, m.content as content, date_format(m.reg_dtm, '%Y-%m-%d %T') as regDtm, m.record_type as recordType, m.use_yn as useYn " + "from MODERATION_RECORD m " + "join USER_NOT_TO_DO u on m.user_not_to_do_id = u.user_not_to_do_id " + "where u.user_id = :userId " +