diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 2c6def46e..15e945b82 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -1186,10 +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 >= ? ORDER BY b.pay_finished_at DESC LIMIT 1 ` - sqlParams := []interface{}{storeID, model.OrderStatusFinished} + sqlParams := []interface{}{storeID, model.OrderStatusDelivering} err = dao.GetRow(db, &orderPay, sql, sqlParams) if orderPay != nil { if time.Now().Sub(*orderPay.PayFinishedAt).Hours() < 24*7 {