From 2f1f096129eb32b05e55364b5a0a9609af5dbaed 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, 11 Mar 2020 16:21:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E8=AE=A2=E5=8D=95=E4=B8=80?= =?UTF-8?q?=E5=91=A8=E5=86=85=E4=B8=8D=E8=83=BD=E9=87=8D=E5=A4=8D=E4=B8=8B?= =?UTF-8?q?=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 15e945b82..3b5d135f6 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -1186,11 +1186,11 @@ func GetMatterStoreOrderCount(ctx *jxcontext.Context, storeID int) (result *Orde JOIN order_pay b ON a.vendor_order_id = b.vendor_order_id WHERE IF(a.store_id = 0, a.jx_store_id, a.store_id) = 666666 AND a.from_store_id = ? - AND a.status >= ? + AND a.status >= ? AND a.status != ? ORDER BY b.pay_finished_at DESC LIMIT 1 ` - sqlParams := []interface{}{storeID, model.OrderStatusDelivering} + sqlParams := []interface{}{storeID, model.OrderStatusDelivering, model.OrderStatusCanceled} err = dao.GetRow(db, &orderPay, sql, sqlParams) if orderPay != nil { if time.Now().Sub(*orderPay.PayFinishedAt).Hours() < 24*7 {