订单门钉归属修改

This commit is contained in:
苏尹岚
2019-12-02 11:30:36 +08:00
parent 410f671a36
commit d4edd5d06d

View File

@@ -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) {