models/positions.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
models/positions.go
@@ -24,7 +24,7 @@ } func (d *Positions) FindMovePosition(timestamp int64, pos string) error { return db.Table(d.TableName()).Where("create_time <= ? AND pos != ?", timestamp, pos).First(&d).Error return db.Table(d.TableName()).Where("create_time >= ? AND pos != ?", timestamp, pos).First(&d).Error } func (d *Positions) FindPositionByTime(timestamp int64) error {