Skip to content

Commit

Permalink
fix: 예약 등록 알림톡 오류 수정 (#291)
Browse files Browse the repository at this point in the history
* feat: 알림톡 기능 구현 / 예약등록 알림톡 적용

* feat: 예약 확정 알림톡 적용

* feat: 예약 확정 + 초대장 알림톡 적용

* feat: 예약 취소 알림톡 구현

* feat: 예약 취소 알림톡 구현

* fix: 예약 확정 로직 수정

* feat: 예약 변경 알림톡 적용

* fix: 예약 등록 알림톡 오류 수정
  • Loading branch information
sejineer authored Mar 6, 2024
1 parent 8afe9df commit f32deed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface ReservationRepository extends JpaRepository<Reservation, Long>,

@Lock(LockModeType.PESSIMISTIC_WRITE)
@Query("select r from Reservation r where r.date = :date and r.time = :time and r.experienceGift=:experienceGift")
Optional<Reservation> findByDateAndTimeAndExperienceGiftWithPessimisticLock(LocalDate date, LocalTime time, ExperienceGift experienceGift);
Optional<Reservation> findByDateAndTimeAndExperienceGiftWithPessimisticLock(@Param("date") LocalDate date, @Param("time") LocalTime time, @Param("experienceGift") ExperienceGift experienceGift);

@EntityGraph(attributePaths = {"experienceGift", "experienceGift.shopOwner", "sender", "receiver"})
Optional<Reservation> findReservationById(Long reservationId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ public void sendApply(User receiver, ExperienceGift experienceGift, Reservation
messages.add(MessageMapping.builder()
.to(receiver.getPhoneNumber())
.content("[셸위]\n" +
"예약이 접수되었습니다.\n" +
"아래 계좌로 입금이 확인되면 예약확정과 함께 초대장이 발송됩니다.\n" +
"예약이 접수되었습니다\n" +
"아래 계좌로 입금이 확인되면 예약확정과 함께 초대장이 발송됩니다\n" +
"\n" +
"\uD83D\uDCCC 금액: " + price + "원\n" +
"입금계좌: " + account + "\n" +
Expand Down

0 comments on commit f32deed

Please sign in to comment.