|
@ -5,6 +5,7 @@ import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"goInOut/consumers/SinoGnssMySQL" |
|
|
"goInOut/consumers/SinoGnssMySQL" |
|
|
"strconv" |
|
|
"strconv" |
|
|
|
|
|
"time" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
// Adaptor_SINOMYSQL_AXYMQTT 数据 转换 江苏农村公路桥梁监测系统
|
|
|
// Adaptor_SINOMYSQL_AXYMQTT 数据 转换 江苏农村公路桥梁监测系统
|
|
@ -19,7 +20,7 @@ func (the Adaptor_SINOMYSQL_AXYMQTT) Transform(gnssDataList []SinoGnssMySQL.Gnss |
|
|
OnceDxFiles = append(OnceDxFiles, SinoGnssMySQL.DxFile{ |
|
|
OnceDxFiles = append(OnceDxFiles, SinoGnssMySQL.DxFile{ |
|
|
Module: gnssData.StationName, |
|
|
Module: gnssData.StationName, |
|
|
Channel: 1, |
|
|
Channel: 1, |
|
|
Timespan: gnssData.Time.UnixMilli(), |
|
|
Timespan: gnssData.Time.Add(8 * time.Hour).UnixMilli(), |
|
|
//file_mqtt协议里面只解析RV, m=> mm
|
|
|
//file_mqtt协议里面只解析RV, m=> mm
|
|
|
RawValue: []float64{gnssData.X * 1000, gnssData.Y * 1000, gnssData.H * 1000}, |
|
|
RawValue: []float64{gnssData.X * 1000, gnssData.Y * 1000, gnssData.H * 1000}, |
|
|
LimitValue: []float64{}, |
|
|
LimitValue: []float64{}, |
|
|