|
@ -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 |
|
|