Skip to content

Commit

Permalink
Merge pull request #292 from ShallWeProject/develop
Browse files Browse the repository at this point in the history
fix: 예약 등록 알림톡 오류 수정 (#291)
  • Loading branch information
sejineer authored Mar 6, 2024
2 parents 994ee0a + f32deed commit 12d4496
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 12d4496

Please sign in to comment.