|
|
@ -91,7 +91,7 @@ func (the Adaptor_ZWYES_HBGL) EsAggTopToHBJCAS(structId int64, factorId int, esA |
|
|
|
func (the Adaptor_ZWYES_HBGL) getMonitorTypeByFactorId(factorId int) protoFiles_hb.MonitoryType { |
|
|
|
//隧道 拱顶沉降 102
|
|
|
|
//边坡 雨量 55 表面位移62
|
|
|
|
//桥梁 桥墩转角 1914 挠度 19 挠度 1917 横向加速度 1919 纵向加速度 1920 竖向加速度 1944
|
|
|
|
//桥梁 桥墩转角 1914,1945 挠度 19 挠度 1917 横向加速度 1919 纵向加速度 1920 竖向加速度 1944
|
|
|
|
switch factorId { |
|
|
|
case 55: |
|
|
|
return protoFiles_hb.MonitoryType_PWS |
|
|
@ -99,7 +99,7 @@ func (the Adaptor_ZWYES_HBGL) getMonitorTypeByFactorId(factorId int) protoFiles_ |
|
|
|
return protoFiles_hb.MonitoryType_DBWY |
|
|
|
case 102: |
|
|
|
return protoFiles_hb.MonitoryType_GDCJ |
|
|
|
case 1914: |
|
|
|
case 1914, 1945: |
|
|
|
return protoFiles_hb.MonitoryType_INC |
|
|
|
case 19, 1917: |
|
|
|
return protoFiles_hb.MonitoryType_HPT |
|
|
@ -165,7 +165,7 @@ func (the Adaptor_ZWYES_HBGL) EsAgg2StatisticData(factorId int, monitorCode int6 |
|
|
|
RootMeanSquare: float32(rootMeanSquareX), |
|
|
|
TotalAbsoluteValue: float32(dateBucket.X.Max - dateBucket.X.Min), |
|
|
|
}} |
|
|
|
case 1914: //桥墩转角
|
|
|
|
case 1914, 1945: //桥墩转角
|
|
|
|
dataDefinitionStatisticData.StatisticData.DataBody = &protoFiles_hb.StatisticData_Inc{Inc: &protoFiles_hb.INCStatistic{ |
|
|
|
MaxAbsoluteValueX: float32(maxAbsoluteValueX), |
|
|
|
AvgValueX: float32(avgValueX), |
|
|
|