【update】route_order添加actual_order_no不为null判断

This commit is contained in:
nixj 2024-06-20 09:56:31 +08:00
parent ed0b9beffc
commit a3fc44e83e
1 changed files with 4 additions and 3 deletions

View File

@ -54,9 +54,10 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai
@Override
public Page<ItineraryPageDto> itineraryPageQueryByDto(ItineraryPageQuery dto) {
String query = "SELECT * FROM route_order " +
"WHERE route_id IN (:routeIds) " +
"AND (:actualOrderNo IS NULL OR actual_order_no = :actualOrderNo ) ";
String query = "SELECT * FROM route_order "
+ "WHERE route_id IN (:routeIds) "
+ "AND (:actualOrderNo IS NULL OR actual_order_no = :actualOrderNo ) "
+ "AND actual_order_no IS NOT NULL ";
if (!dto.getUserIds().isEmpty()) {
query+="AND user_id IN (:userIds)";