Changeset 4173acf for src/main/java/com/example
- Timestamp:
- 08/24/23 15:29:09 (16 months ago)
- Branches:
- master
- Children:
- 608fba87
- Parents:
- 4158cac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/SeatServiceImpl.java
r4158cac r4173acf 43 43 List<Ticket> tickets=ticketService.findAllTickets(); 44 44 List<Seat> seats=seatRepository.findAllByCategoryAndProjection(category,projectionRoom); 45 List<Seat> pom = new ArrayList<>(); 45 46 46 for (int i = 0; i < tickets.size(); i++) { 47 47 if(tickets.get(i).getProjection()==projection){ 48 if( !seats.contains(tickets.get(i).getSeat())){49 pom.add(seats.get(i));48 if(seats.contains(tickets.get(i).getSeat())){ 49 seats.remove(tickets.get(i).getSeat()); 50 50 } 51 51 } 52 52 } 53 return pom;53 return seats; 54 54 } 55 55
Note:
See TracChangeset
for help on using the changeset viewer.