From a3fc44e83ea3150a6547a54ad96a1cda38081360 Mon Sep 17 00:00:00 2001 From: nixj Date: Thu, 20 Jun 2024 09:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90update=E3=80=91route=5Forder=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0actual=5Forder=5Fno=E4=B8=8D=E4=B8=BAnull=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/impl/JdbcConsumptionDetailRepositoryImpl.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)";