Browse Source

update 添加光电挠度数据处理

pull/2/head
lucas 2 months ago
parent
commit
7b38baa228
  1. 7
      configFiles/config_江苏农村公路桥梁.json
  2. 1
      consumers/JSNCGLQL/config.go
  3. 3
      consumers/consumerJSNCGLQL.go

7
configFiles/config_江苏农村公路桥梁.json

@ -10,7 +10,8 @@
"clientId": "goUpload_JSNCGLQL",
"Topics": [
"upload/uds/+",
"upload/ZD/+"
"upload/ZD/+",
"upload/gdnd/+"
]
}
},
@ -38,6 +39,10 @@
"ZDsensorMap": {
"m1c1": "LHTDQ-VIB-C08-001-01",
"m1c2": "LHTDQ-VIB-L03-001-01"
},
"GDNDsensorMap": {
"DY-DIS-ZG03-01": "LHTDQ-GDND-G03-003-01",
"m3c2": "LHTDQ-GDND-G03-003-02"
}
}
}

1
consumers/JSNCGLQL/config.go

@ -23,6 +23,7 @@ type OUT struct {
type SensorConfig struct {
TYCJsensorMap map[string]string `json:"TYCJsensorMap"`
ZDsensorMap map[string]string `json:"ZDsensorMap"`
GDNDsensorMap map[string]string `json:"GDNDsensorMap"`
}
type SensorInfo struct {

3
consumers/consumerJSNCGLQL.go

@ -116,6 +116,9 @@ func (the *consumerJSNCGLQL) getAdaptor(flag string) (adaptor adaptors.IAdaptor4
case "upload/ZD":
log.Printf("[振动软件]-上报,准备处理")
adaptor = adaptors.Adaptor_ZD_JSNCGLQL{IdMap: the.Info.ZDsensorMap, BridgeCode: bridgeCode}
case "upload/gdnd":
log.Printf("[光电挠度]-上报,准备处理")
adaptor = adaptors.Adaptor_GDND2LA_JSNCGLQL{IdMap: the.Info.GDNDsensorMap, BridgeCode: bridgeCode}
default:
log.Printf("[无匹配 %s],不处理", flag)
}

Loading…
Cancel
Save