zhangzengfei
2024-08-22 9c4763d79154e0c4e708c8c13b5cef1182242edf
修复电梯运行状态查询的bug
1个文件已修改
2 ■■■ 已修改文件
models/positions.go 2 ●●● 补丁 | 查看 | 原始文档 | 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 {