alarm
This commit is contained in:
@@ -348,12 +348,12 @@ type AlarmDefine struct {
|
||||
Status string `json:"status" xorm:"status"`
|
||||
}
|
||||
|
||||
func XormGetAlarmDefine(alarmId string) (*AlarmDefine, error) {
|
||||
func XormGetAlarmDefine(alarmCode string) (*AlarmDefine, error) {
|
||||
log.Debug("XormGetAlarmDefine processing... ")
|
||||
|
||||
alarmDefine := new(AlarmDefine)
|
||||
_, err := dbClient.xEngine.
|
||||
Where("alarm_id=? and status='Active'", alarmId).
|
||||
Where("alarm_code=? and status='Active'", alarmCode).
|
||||
Get(alarmDefine)
|
||||
if err != nil {
|
||||
log.Error("Failed to get table alarm_define from database:", err)
|
||||
|
||||
Reference in New Issue
Block a user