From 2042e01c61827c7a15e0e67625e544e890730390 Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 13 Oct 2019 12:24:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E8=A5=BF=E5=95=86=E5=9F=8E=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=9C=A8=E5=AE=8C=E6=88=90=E5=90=8E=E4=B8=8D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B6?= 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 e4657da84..7f2631e17 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -395,8 +395,8 @@ func (c *OrderManager) getOrders(ctx *jxcontext.Context, isIncludeSku, isInclude } else { if isJxFirst { sql += ` - ORDER BY IF(t1.vendor_id = ?, 0, 1), t1.order_created_at DESC` - sqlParams = append(sqlParams, model.VendorIDJX) + ORDER BY IF(t1.status < ?, IF(t1.vendor_id = ?, 0, 1), 0), t1.order_created_at DESC` + sqlParams = append(sqlParams, model.OrderStatusEndBegin, model.VendorIDJX) } else { sql += ` ORDER BY t1.order_created_at DESC`