Browse Source

Staions.Data.PhyData赋值

dev
yfh 4 weeks ago
parent
commit
7c8ceddcca
  1. 6
      et_calc/dataCalc.go

6
et_calc/dataCalc.go

@ -122,8 +122,14 @@ func (the *CalcHandler) calcFormula(p *common_models.ProcessData) *common_models
} }
//todo 测点多设备特殊处理.. //todo 测点多设备特殊处理..
phyData := map[string]any{}
for k, v := range outMap {
phyData[k] = v
}
if len(p.Stations[i].Info.Devices) == 1 { if len(p.Stations[i].Info.Devices) == 1 {
p.Stations[i].Data.ThemeData = outMap p.Stations[i].Data.ThemeData = outMap
p.Stations[i].Data.PhyData = phyData
p.Stations[i].Data.CollectTime = p.DeviceData.AcqTime p.Stations[i].Data.CollectTime = p.DeviceData.AcqTime
} }
} }

Loading…
Cancel
Save