订单门钉归属修改
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
|
SET t1.jx_store_id = a.store_id
|
||||||
WHERE t1.jx_store_id = 0
|
WHERE t1.jx_store_id = 0
|
||||||
AND a.deleted_at = ?
|
AND a.deleted_at = ?
|
||||||
|
AND t1.order_created_at >= ? AND t1.order_created_at <= ?
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{
|
sqlParams := []interface{}{
|
||||||
utils.DefaultTimeValue,
|
utils.DefaultTimeValue,
|
||||||
}
|
}
|
||||||
sql += " AND t1.order_created_at >= ? AND t1.order_created_at <= ?"
|
|
||||||
if !utils.IsTimeZero(fromDate) {
|
if !utils.IsTimeZero(fromDate) {
|
||||||
sqlParams = append(sqlParams, fromDate)
|
sqlParams = append(sqlParams, fromDate)
|
||||||
if !utils.IsTimeZero(toDate) {
|
if !utils.IsTimeZero(toDate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user