|
@ -103,6 +103,7 @@ func (the *consumerAXYES2GDJKJC) Work() { |
|
|
"sign": utils.GetSign(string(push.Payload), rnd, appKey, appSecret), |
|
|
"sign": utils.GetSign(string(push.Payload), rnd, appKey, appSecret), |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
log.Printf("推送数据=%s", push.Payload) |
|
|
_, err := the.outHttp.PublishWithHeader(push.Payload, Header) |
|
|
_, err := the.outHttp.PublishWithHeader(push.Payload, Header) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Printf("数据推送异常=> %s", err.Error()) |
|
|
log.Printf("数据推送异常=> %s", err.Error()) |
|
@ -132,7 +133,7 @@ func (the *consumerAXYES2GDJKJC) getStructIds() []int64 { |
|
|
func (the *consumerAXYES2GDJKJC) getEs1HourAggData() { |
|
|
func (the *consumerAXYES2GDJKJC) getEs1HourAggData() { |
|
|
start, end := utils.GetTimeRangeByHour(-1) |
|
|
start, end := utils.GetTimeRangeByHour(-1) |
|
|
log.Printf("查询数据时间范围 %s - %s", start, end) |
|
|
log.Printf("查询数据时间范围 %s - %s", start, end) |
|
|
hourFactorIds := []int{63} //[]int{11, 15, 18, 20} //应变11 桥墩倾斜15 裂缝监测18 桥面振动28 支护结构变形63
|
|
|
hourFactorIds := []int{15} //[]int{11, 15, 18, 20} //应变11 桥墩倾斜15 裂缝监测18 支护结构变形63
|
|
|
structIds := the.getStructIds() |
|
|
structIds := the.getStructIds() |
|
|
for _, structId := range structIds { |
|
|
for _, structId := range structIds { |
|
|
for _, factorId := range hourFactorIds { |
|
|
for _, factorId := range hourFactorIds { |
|
|