fix
This commit is contained in:
parent
e2bd32c96c
commit
3929672566
|
@ -379,8 +379,8 @@ func (m *ordersModel) GetRechargeTimeoutOrder(
|
|||
var args []interface{}
|
||||
sql += " and transfer_status = 2"
|
||||
sql += " and (fail_reason = '' or fail_reason IS NULL)"
|
||||
sql += " and created_at <= DATE_SUB(NOW(), INTERVAL 3 MINUTE)"
|
||||
// sql += " and created_at <= DATE_SUB(DATE_ADD(NOW(),INTERVAL 8 HOUR), INTERVAL 7 MINUTE)"
|
||||
// sql += " and created_at <= DATE_SUB(NOW(), INTERVAL 3 MINUTE)"
|
||||
sql += " and created_at <= DATE_SUB(DATE_ADD(NOW(),INTERVAL 8 HOUR), INTERVAL 7 MINUTE)"
|
||||
err = m.GetDb().Where(sql, args...).OrderBy("created_at").Limit(limit).Find(&orders)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue