From 2cde3ba1b58f6490f13c58826222a5c6a50cc9e6 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 17 Apr 2019 15:19:57 +0800 Subject: [PATCH] =?UTF-8?q?-=20GetStoreOrderCountInfo=E6=8E=92=E9=99=A4?= =?UTF-8?q?=E6=8E=89LOCK=E4=BA=86=E7=9A=84=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/orderman_ext.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 2aef2ee59..4cf4f4299 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -76,10 +76,10 @@ func (c *OrderManager) GetStoreOrderCountInfo(ctx *jxcontext.Context, storeID st SELECT t1.status, COUNT(*) count FROM goods_order t1 WHERE t1.vendor_id <> 2 AND IF(t1.vendor_id = ?, t1.store_id, IF(t1.jx_store_id != 0, t1.jx_store_id, t1.store_id) ) = ? - AND t1.order_created_at >= ? + AND t1.order_created_at >= ? AND t1.lock_status = ? GROUP BY 1 ORDER BY 1 - `, model.VendorIDWSC, storeID, time.Now().Add(-time.Duration(lastHours)*time.Hour)).QueryRows(&countInfo) + `, model.VendorIDWSC, storeID, time.Now().Add(-time.Duration(lastHours)*time.Hour), model.OrderStatusUnknown).QueryRows(&countInfo) if err == nil { return countInfo, nil }