|
func (a *Alert) GetRules(vendorid uint, pi, ps, proid, protocalid int, name string) (datas []models.AlarmRule, total int, err error) {
|
|
func (a *Alert) GetRules(vendorid uint, pi, ps, proid, protocalid int, name string) (datas []models.AlarmRule, total int, err error) {
|
|
tx := a.db.Where("vendor_id = ? and 1=1", vendorid)
|
|
tx := a.db.Where("vendor_id = ? and 1=1", vendorid)
|
|
tx = tx.Where("protocal_id = ?", protocalid)
|
|
tx = tx.Where("protocal_id = ?", protocalid)
|