Changes between Version 3 and Version 4 of ManageTripUseCase
- Timestamp:
- 01/13/25 16:26:51 (42 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ManageTripUseCase
v3 v4 7 7 3. The transport organizer selects the ‘From destination’ and enters a location. 8 8 4. The transport organizer selects the ‘To destination’ and enters a location. 9 5. (Optional) The transport organizer selects a date range in which their trips were completed. By default, all trips with an **UPCOMING** status are displayed. 9 5. (Optional) The transport organizer selects a date range to filter their trips. By default, all trips with a **NOT_STARTED** status are displayed. 10 6. (Optional) The transport organizer selects the status to filter their trips. By default, all trips with an **NOT_STARTED** status are displayed. 10 11 11 12 {{{#!sql … … 29 30 JOIN location as lt on r.to_location_id = lt.location_id 30 31 JOIN trip_stops as stop on lf.location_id = stop.location_id 31 WHERE status = 'NOT_STARTED' 32 AND date > {date_after} AND date < {date_before} -- Optional 32 WHERE ({selected_status} IS NULL OR tick.status = {selected_status}) 33 AND ({before_date} IS NULL OR trip.date < {before_date}) 34 AND ({after_date} IS NULL OR trip.date > {after_date}) 33 35 ORDER BY date, stop_time; 34 36 }}}