From 6f99414aa31f545429defb1e8f594c2d7ce7bc03 Mon Sep 17 00:00:00 2001 From: wuwenxiong <646448316@qq.com> Date: Tue, 14 Sep 2021 10:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E8=BE=86=E6=9C=89=E6=95=88=E6=9C=9F?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ordercluster/truck/OrderclusterTruckService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/order/ordercluster/truck/OrderclusterTruckService.java b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/order/ordercluster/truck/OrderclusterTruckService.java index dbe457b..93e1f44 100644 --- a/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/order/ordercluster/truck/OrderclusterTruckService.java +++ b/ssjygl-xsx-common/src/main/java/com/cowr/ssjygl/order/ordercluster/truck/OrderclusterTruckService.java @@ -110,8 +110,8 @@ public class OrderclusterTruckService extends BaseService { " left join ordercluster c on c.id = t.ordercluster_id \n" + " where c.supermarket_id = ? \n" + " and c.state < ?" + - " and c.start_time >= ? \n" + - " and c.cutoff_time <= ? \n" + + " and c.start_time <= ? \n" + + " and c.cutoff_time >= ? \n" + " and t.truck_license = ? \n" + " limit 0,1", supermarket_id, @@ -139,8 +139,8 @@ public class OrderclusterTruckService extends BaseService { " left join ordercluster c on c.id = t.ordercluster_id \n" + " where c.supermarket_id = ? \n" + " and c.state < ?" + - " and c.start_time >= ? \n" + - " and c.cutoff_time <= ? \n" + + " and c.start_time <= ? \n" + + " and c.cutoff_time >= ? \n" + " and t.truck_license = ? \n" + " limit 0,1", supermarket_id,