This commit is contained in:
duyu 2024-08-03 13:49:43 +08:00
parent b262f76d24
commit b1d3b3f8d8
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ 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)"
err = m.GetDb().Where(sql, args...).OrderBy("created_at").Limit(limit).Find(&orders)
return
}