zhangzengfei
2024-08-22 9c4763d79154e0c4e708c8c13b5cef1182242edf
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 {