Browse Source

update 倾斜数据处理

pull/2/head
lucas 2 months ago
parent
commit
6c02504ccd
  1. 3
      adaptors/统一采集to江苏省农村公路桥梁监测.go

3
adaptors/统一采集to江苏省农村公路桥梁监测.go

@ -33,6 +33,9 @@ func (the Adaptor_TYCJ_JSNCGLQL) TYCJtoJSNCGLQL(tycj models.TYCJ) (result []Need
switch tycj.SensorData.FactorType { switch tycj.SensorData.FactorType {
case models.TYCJ_FactorType_YLYB, models.TYCJ_FactorType_DTQYB: //应变23,挡土墙应变13 FS-BM50 case models.TYCJ_FactorType_YLYB, models.TYCJ_FactorType_DTQYB: //应变23,挡土墙应变13 FS-BM50
sensorDataList = append(sensorDataList, tycj.SensorData.Data.ThemeValues[0]) sensorDataList = append(sensorDataList, tycj.SensorData.Data.ThemeValues[0])
case models.TYCJ_FactorType_QDQX: //桥墩倾斜20 X (mm) Y (mm)
sensorDataList = append(sensorDataList, tycj.SensorData.Data.ThemeValues[0])
sensorDataList = append(sensorDataList, tycj.SensorData.Data.ThemeValues[1])
default: default:
log.Printf("监测因素[%d] 无匹配", tycj.SensorData.FactorType) log.Printf("监测因素[%d] 无匹配", tycj.SensorData.FactorType)
return return

Loading…
Cancel
Save