From ab77e0d220cf9f9e0a724e9d4f207b8d499b999c Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 6 Feb 2020 16:32:29 +0800 Subject: [PATCH] =?UTF-8?q?GetStoreAfsOrderSkuList=E4=B8=AD=E5=A4=9A?= =?UTF-8?q?=E6=AC=A1=E9=80=80=E5=90=8C=E4=B8=80=E8=AE=A2=E5=8D=95=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5=E5=A4=84=E7=90=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 cefbc43dd..7861a4024 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -399,7 +399,7 @@ func GetStoreAfsOrderSkuList(db *DaoDB, storeIDs []int, finishedAtBegin, finishe sql := ` SELECT t1.* FROM order_sku_financial t1 - JOIN afs_order t2 ON t2.vendor_order_id = t1.vendor_order_id AND t2.vendor_id = t1.vendor_id + JOIN afs_order t2 ON t2.vendor_order_id = t1.vendor_order_id AND t2.vendor_id = t1.vendor_id AND t2.afs_order_id = t1.afs_order_id WHERE t1.is_afs_order = 1 AND t2.afs_finished_at >= ? AND t2.afs_finished_at <= ?` sqlParams := []interface{}{ finishedAtBegin,