|
@ -89,7 +89,7 @@ func (the Adaptor_AXYES_HBGL) EsAggTopToHBJCAS(structId int64, factorId int, esA |
|
|
return result |
|
|
return result |
|
|
} |
|
|
} |
|
|
func (the Adaptor_AXYES_HBGL) getMonitorTypeByFactorId(factorId int) protoFiles_hb.MonitoryType { |
|
|
func (the Adaptor_AXYES_HBGL) getMonitorTypeByFactorId(factorId int) protoFiles_hb.MonitoryType { |
|
|
//桥墩倾斜 15 裂缝18 支座位移20 桥面振动28
|
|
|
//桥墩倾斜 15 裂缝18 支座位移20 桥面振动28 加速度三项监测592
|
|
|
switch factorId { |
|
|
switch factorId { |
|
|
case 15: |
|
|
case 15: |
|
|
return protoFiles_hb.MonitoryType_INC |
|
|
return protoFiles_hb.MonitoryType_INC |
|
@ -99,6 +99,8 @@ func (the Adaptor_AXYES_HBGL) getMonitorTypeByFactorId(factorId int) protoFiles_ |
|
|
return protoFiles_hb.MonitoryType_DIS |
|
|
return protoFiles_hb.MonitoryType_DIS |
|
|
case 28: |
|
|
case 28: |
|
|
return protoFiles_hb.MonitoryType_VIB |
|
|
return protoFiles_hb.MonitoryType_VIB |
|
|
|
|
|
case 592: |
|
|
|
|
|
return protoFiles_hb.MonitoryType_VIB |
|
|
default: |
|
|
default: |
|
|
log.Printf("factorId=%d,无匹配的MonitorType", factorId) |
|
|
log.Printf("factorId=%d,无匹配的MonitorType", factorId) |
|
|
return protoFiles_hb.MonitoryType_CMM |
|
|
return protoFiles_hb.MonitoryType_CMM |
|
@ -154,6 +156,11 @@ func (the Adaptor_AXYES_HBGL) EsAgg2StatisticData(factorId int, monitorCode int6 |
|
|
MaxAbsoluteValue: float32(maxAbsoluteValueX), |
|
|
MaxAbsoluteValue: float32(maxAbsoluteValueX), |
|
|
RootMeanSquare: float32(rootMeanSquareY), |
|
|
RootMeanSquare: float32(rootMeanSquareY), |
|
|
}} |
|
|
}} |
|
|
|
|
|
case 592: //加速度三项监测
|
|
|
|
|
|
dataDefinitionStatisticData.StatisticData.DataBody = &protoFiles_hb.StatisticData_Vib{Vib: &protoFiles_hb.VIBStatistic{ |
|
|
|
|
|
MaxAbsoluteValue: float32(maxAbsoluteValueX), |
|
|
|
|
|
RootMeanSquare: float32(rootMeanSquareX), |
|
|
|
|
|
}} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return dataDefinitionStatisticData |
|
|
return dataDefinitionStatisticData |
|
|