[新增]设备公里表长短链校正

This commit is contained in:
thesai 2024-08-22 14:03:33 +08:00
parent fa600673a6
commit a165321c39
2 changed files with 8 additions and 1 deletions

@ -1 +1 @@
Subproject commit bc7ca44ffd0a95f8a1ae14b391f93b28b11a452b Subproject commit 94413167c079aaa7aa9717a0e4a6281a21c49244

View File

@ -1297,6 +1297,13 @@ func fillProtoRepository(repo *proto.Repository, storage *data_proto.RtssGraphic
SameTrend: data.SameTrend, SameTrend: data.SameTrend,
}) })
} }
//公里标校准数据
for _, calibration := range storage.KilometerMarkCalibrations {
repo.KilometerCalibrations = append(repo.KilometerCalibrations, &proto.KilometerCalibration{
Design: convertKm(calibration.DesignKm),
Actual: convertKm(calibration.ActualKm),
})
}
//// 初始化站场图按钮 //// 初始化站场图按钮
//for _, data := range storage.EsbButtons { //for _, data := range storage.EsbButtons {
// repo.Buttons = append(repo.Buttons, &proto.Button{ // repo.Buttons = append(repo.Buttons, &proto.Button{