diff --git a/src/main/java/com/chint/manage/mapper/impl/JdbcConsumptionDetailRepositoryImpl.java b/src/main/java/com/chint/manage/mapper/impl/JdbcConsumptionDetailRepositoryImpl.java index 10a8909b..9fc13b84 100644 --- a/src/main/java/com/chint/manage/mapper/impl/JdbcConsumptionDetailRepositoryImpl.java +++ b/src/main/java/com/chint/manage/mapper/impl/JdbcConsumptionDetailRepositoryImpl.java @@ -54,9 +54,10 @@ public class JdbcConsumptionDetailRepositoryImpl implements JdbcConsumptionDetai @Override public Page 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)";