Skip to content

Commit

Permalink
#426 remove unnecessary alias
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed May 15, 2018
1 parent 7c325b7 commit 6b7ee1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/alfio/repository/EventRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ int updatePrices(@Bind("currency") String currency,
@Query("select coalesce(sum(final_price_cts),0) from ticket where event_id = :eventId and status in("+TicketRepository.CONFIRMED+")")
long getGrossIncome(@Bind("eventId") int eventId);

@Query("select count(*) as total_attendees, COALESCE(SUM(CASE WHEN t.status = 'CHECKED_IN' THEN 1 ELSE 0 END), 0) as checked_in, CURRENT_TIMESTAMP as last_update from ticket t where event_id = :eventId and status in("+TicketRepository.CONFIRMED+")")
@Query("select count(*) as total_attendees, COALESCE(SUM(CASE WHEN status = 'CHECKED_IN' THEN 1 ELSE 0 END), 0) as checked_in, CURRENT_TIMESTAMP as last_update from ticket where event_id = :eventId and status in("+TicketRepository.CONFIRMED+")")
CheckInStatistics retrieveCheckInStatisticsForEvent(@Bind("eventId") int eventId);


Expand Down

0 comments on commit 6b7ee1b

Please sign in to comment.