|
@ -144,8 +144,7 @@ func (the *consumerAlarmCombination) updateCombinationInfo() { |
|
|
sql := `SELECT a.*,s."name" as struct_name FROM "t_alarm_combination" as a |
|
|
sql := `SELECT a.*,s."name" as struct_name FROM "t_alarm_combination" as a |
|
|
left join t_structure as s |
|
|
left join t_structure as s |
|
|
ON a.struct_id=s."id"` |
|
|
ON a.struct_id=s."id"` |
|
|
sql += " where a.id=1" //测试用
|
|
|
//sql += " where a.id=1" //测试用
|
|
|
//var CombinationInfos []AlarmCombination.CombinationInfo
|
|
|
|
|
|
err := the.infoPg.Query(&the.combinationInfo, sql) |
|
|
err := the.infoPg.Query(&the.combinationInfo, sql) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Printf("查询数据库异常:err-> %s", err.Error()) |
|
|
log.Printf("查询数据库异常:err-> %s", err.Error()) |
|
|