From fabed5e23913c70677e68995d4ac1c2ebc41b9e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 19 Feb 2020 14:09:49 +0800 Subject: [PATCH] =?UTF-8?q?GetStoresOrderSaleInfo=20=20=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/model/dao/dao_order.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 5ada9912c..7691bcbf8 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -394,15 +394,13 @@ func GetStoreOrderSkuList4Afs(db *DaoDB, storeIDs []int, finishedAtBegin, finish JOIN ( SELECT t12.* FROM afs_order t12 - WHERE IF(t12.jx_store_id > 0, t12.jx_store_id, t12.store_id) IN (` + GenQuestionMarks(len(storeIDs)) + `) - ` + WHERE IF(t12.jx_store_id > 0, t12.jx_store_id, t12.store_id) IN (` + GenQuestionMarks(len(storeIDs)) if isFinish { - sql += " AND t12.afs_finished_at >= ? AND t12.afs_finished_at <= ?" + sql += ") AND t12.afs_finished_at >= ? AND t12.afs_finished_at <= ?" } else { - sql += " AND t12.afs_created_at >= ? AND t12.afs_created_at <= ?" + sql += ") AND t12.afs_created_at >= ? AND t12.afs_created_at <= ?" } - sql += ` - ) t4 ON t4.vendor_order_id = t2.vendor_order_id AND t4.vendor_id = t2.vendor_id` + sql += ") t4 ON t4.vendor_order_id = t2.vendor_order_id AND t4.vendor_id = t2.vendor_id" sqlParams := []interface{}{ storeIDs, finishedAtBegin,