订单门钉归属修改
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user