- 不限制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 >= ?"

View File

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