fix
This commit is contained in:
parent
6781ac263f
commit
d51411f7ae
|
@ -365,8 +365,8 @@ func (m *ordersModel) GetTimeoutOrder(
|
|||
sql := "1=1"
|
||||
var args []interface{}
|
||||
sql += " and transfer_status not in (1,2,4,5,6)"
|
||||
// sql += " and created_at <= DATE_SUB(NOW(), INTERVAL 5 MINUTE)"
|
||||
sql += " and created_at <= DATE_SUB(DATE_ADD(NOW(),INTERVAL 8 HOUR), INTERVAL 5 MINUTE)"
|
||||
// sql += " and created_at <= DATE_SUB(NOW(), INTERVAL 3 MINUTE)"
|
||||
sql += " and created_at <= DATE_SUB(DATE_ADD(NOW(),INTERVAL 8 HOUR), INTERVAL 3 MINUTE)"
|
||||
err = m.GetDb().Where(sql, args...).OrderBy("created_at").Limit(limit).Find(&orders)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue