Skip to content

Commit

Permalink
[fix]: conflict 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
ssssujini99 committed Dec 24, 2023
1 parent caa42ae commit babb762
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ public void saveAll(Iterable<Seat> seats) {
public List<SeatDateRoundDto> findSeatDateRoundInfoByShowId(Long showId) {
return seatJpaRepository.findSeatDateRoundInfoByShowId(showId);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
package dev.hooon.show.domain.repository;
package dev.hooon.show.infrastructure.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import dev.hooon.show.domain.entity.seat.Seat;
import dev.hooon.show.dto.query.SeatDateRoundDto;

public interface SeatRepository {

void saveAll(Iterable<Seat> seats);
public interface SeatJpaRepository extends JpaRepository<Seat, Long> {

@Query("""
select distinct
new dev.hooon.show.dto.query.SeatDateRoundDto(s.showDate, s.showRound.round, s.showRound.startTime)
from Seat s
where s.show.id = :showId
order by s.showDate, s.showRound.round
""")
List<SeatDateRoundDto> findSeatDateRoundInfoByShowId(Long showId);
}

0 comments on commit babb762

Please sign in to comment.