From d4edd5d06d823c1a405a9e628f54a77e51fd1d1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 2 Dec 2019 11:30:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=97=A8=E9=92=89=E5=BD=92?= =?UTF-8?q?=E5=B1=9E=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 4f02d9652..46584075c 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -926,11 +926,11 @@ func UpdateOrdersWithoutJxStoreID(db *DaoDB, fromDate, toDate time.Time) (count SET t1.jx_store_id = a.store_id WHERE t1.jx_store_id = 0 AND a.deleted_at = ? + AND t1.order_created_at >= ? AND t1.order_created_at <= ? ` sqlParams := []interface{}{ utils.DefaultTimeValue, } - sql += " AND t1.order_created_at >= ? AND t1.order_created_at <= ?" if !utils.IsTimeZero(fromDate) { sqlParams = append(sqlParams, fromDate) if !utils.IsTimeZero(toDate) {