From cebf64c598f9644bb0bcd25f12bde632c54064db Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 10 Jun 2019 18:36:16 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=B8=8D=E9=99=90=E5=88=B6RefreshOrderReal?= =?UTF-8?q?Mobile=E7=9A=84=E6=9C=80=E6=99=9A=E5=88=B7=E6=96=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=EF=BC=8C=E5=9B=A0=E4=B8=BA=E4=BA=AC=E4=B8=9C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=88=B7=E6=9C=80=E8=BF=91=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/jxstore/misc/misc.go | 3 +-- controllers/jx_order.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 5fe9959a7..39244a64d 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -39,11 +39,10 @@ func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime ti sql := ` SELECT * FROM goods_order - WHERE vendor_id = ? AND consignee_mobile2 = '' AND order_created_at <= ? + WHERE vendor_id = ? AND consignee_mobile2 = '' ` sqlParams := []interface{}{ vendorID, - time.Now().Add(-4 * time.Hour), // 最近的刷新意义不大 } if !utils.IsTimeZero(fromTime) { sql += " AND order_created_at >= ?" diff --git a/controllers/jx_order.go b/controllers/jx_order.go index 63150c715..168c51985 100644 --- a/controllers/jx_order.go +++ b/controllers/jx_order.go @@ -420,7 +420,7 @@ func (c *OrderController) GetStoresOrderSaleInfo() { // @Description 刷新订单真实手机号 // @Param token header string true "认证token" // @Param vendorID formData int true "厂商ID" -// @Param fromTime formData string false "起始时间" +// @Param fromTime formData string true "起始时间" // @Param toTime formData string false "结束时间" // @Param isAsync formData bool true "是否异步操作" // @Param isContinueWhenError formData bool false "单个同步失败是否继续,缺省false"