From 1855af8757565c2cee766ad127b8e00c0dd0c0e8 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 7 Feb 2020 13:48:36 +0800 Subject: [PATCH] =?UTF-8?q?GetStoreOrderSkuList=E4=BB=A5=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=97=B6=E9=97=B4=E4=B8=BA=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index c92bbae6f..e46958c0d 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -356,7 +356,7 @@ func GetStoreOrderSkuList(db *DaoDB, storeIDs []int, finishedAtBegin, finishedAt FROM order_sku t1 JOIN goods_order t2 ON t2.vendor_order_id = t1.vendor_order_id AND t2.vendor_id = t1.vendor_id LEFT JOIN store t3 ON t3.id = IF(t2.jx_store_id > 0, t2.jx_store_id, t2.store_id) - WHERE t2.order_created_at >= ? AND t2.order_created_at <= ?` + WHERE t2.order_finished_at >= ? AND t2.order_finished_at <= ?` sqlParams := []interface{}{ finishedAtBegin, finishedAtEnd,