- Timestamp:
- 01/13/24 23:19:50 (10 months ago)
- Branches:
- master
- Children:
- e85a562
- Parents:
- e9b4ba9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/tourMate/services/impl/TransportManagerImpl.java
re9b4ba9 rac19a0c 24 24 25 25 @Override 26 public void createTransport(String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, User owner, String carPlate) {27 transportDao.createTransport(transportName, carBrand, carType, carManufacturedYear, noPassengers, noBags, EMBG, owner, carPlate);26 public void createTransport(String transportName, String carBrand, String carType, int carManufacturedYear, int noPassengers, int noBags, long EMBG, Long userId, String carPlate) { 27 transportDao.createTransport(transportName, carBrand, carType, carManufacturedYear, noPassengers, noBags, EMBG, userId, carPlate); 28 28 } 29 29 … … 83 83 84 84 @Override 85 public List<TransportListingDto> getTransportsAvailableByFilters(String from, String to, Date date ) {86 List<TransportRoute> transportAvailable = transportDao.getTransportsAvailableByFilters(from, to, date );85 public List<TransportListingDto> getTransportsAvailableByFilters(String from, String to, Date date, int numPassengers) { 86 List<TransportRoute> transportAvailable = transportDao.getTransportsAvailableByFilters(from, to, date, numPassengers); 87 87 Map<TransportAvailible, List<TransportRoute>> transportsByTransporter = transportAvailable.stream().collect(Collectors.groupingBy(x -> x.getParentRoute())); 88 88 List<TransportListingDto> transportList = transportsByTransporter.keySet().stream().toList().stream()
Note:
See TracChangeset
for help on using the changeset viewer.