- 不限制RefreshOrderRealMobile的最晚刷新时间,因为京东可以刷最近的订单

This commit is contained in:
gazebo
2019-06-10 18:36:16 +08:00
parent bd0c37b6df
commit cebf64c598
2 changed files with 2 additions and 3 deletions

View File

@@ -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 >= ?"