Skip to content
This repository was archived by the owner on Nov 19, 2021. It is now read-only.

Commit 122d021

Browse files
committed
check only not mapped requests when match request by offer
1 parent 843586b commit 122d021

File tree

1 file changed

+2
-1
lines changed
  • samples/core/src/main/java/io/oasp/gastronomy/restaurant/ridesharing/requestmanagement/dataaccess/impl/dao

1 file changed

+2
-1
lines changed

samples/core/src/main/java/io/oasp/gastronomy/restaurant/ridesharing/requestmanagement/dataaccess/impl/dao/RequestDaoImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public PaginatedListTo<RequestEntity> checkRequestMatchedByOffer(RequestSearchCr
4646
Long fromLocationId = requestSearchCriteriaTo.getRSOffer().getFromLocation();
4747
Long toLocationId = requestSearchCriteriaTo.getRSOffer().getToLocation();
4848

49-
query.where(($(request.getEarliestDepartureTime()).before(departureTime))
49+
query.where(($(request.getRSOfferIdMapped()).in(0))
50+
.and($(request.getEarliestDepartureTime()).before(departureTime))
5051
.and($(request.getLatestDepartureTime()).after(departureTime))
5152
.and($(request.getFromLocation()).eq(fromLocationId)).and($(request.getToLocation()).eq(toLocationId)));
5253

0 commit comments

Comments
 (0)