From f9f9004081c92370dc32d1a2de75a316eb47989f Mon Sep 17 00:00:00 2001 From: lucas Date: Fri, 4 Jul 2025 13:02:17 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E8=AF=95=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configFiles/config_知物云_组合告警.yaml | 6 +++--- consumers/consumerAlarmCombination.go | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/configFiles/config_知物云_组合告警.yaml b/configFiles/config_知物云_组合告警.yaml index c0902e4..01cfe02 100644 --- a/configFiles/config_知物云_组合告警.yaml +++ b/configFiles/config_知物云_组合告警.yaml @@ -2,7 +2,7 @@ consumer: consumerAlarmCombination ioConfig: in: http: - url: https://esproxy.anxinyun.cn/savoir_alarms/_search + url: https://esproxy.anxinyun.cn/savoir_alarms/_search #商用替换为内网 out: kafka: brokers: ["10.8.30.160:30992"] @@ -10,12 +10,12 @@ ioConfig: topics: - zuhe_alarm monitor: - cron: 31 0/1 * * * #6/10 * * * * + cron: 46 0/1 * * * #6/10 * * * * info: queryComponent: postgres: connect: "host=10.8.30.166 port=5432 user=FashionAdmin password=123456 dbname=SavoirCloud sslmode=disable" #点位id对应信息 -pointInfo: #测点类型支持 桥墩倾斜 15 裂缝18 支座位移20 桥面振动28 加速度三项监测592(承德隧道专用) +pointInfo: diff --git a/consumers/consumerAlarmCombination.go b/consumers/consumerAlarmCombination.go index fd5188e..50c3100 100644 --- a/consumers/consumerAlarmCombination.go +++ b/consumers/consumerAlarmCombination.go @@ -144,8 +144,7 @@ func (the *consumerAlarmCombination) updateCombinationInfo() { sql := `SELECT a.*,s."name" as struct_name FROM "t_alarm_combination" as a left join t_structure as s ON a.struct_id=s."id"` - sql += " where a.id=1" //测试用 - //var CombinationInfos []AlarmCombination.CombinationInfo + //sql += " where a.id=1" //测试用 err := the.infoPg.Query(&the.combinationInfo, sql) if err != nil { log.Printf("查询数据库异常:err-> %s", err.Error())