add query
This commit is contained in:
parent
da0a1cc5a6
commit
49903f9c9d
@ -69,7 +69,7 @@ func GetCommandCount(where ...interface{}) (c int, err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
err = x.Get(&c, query, values)
|
||||
err = x.Get(&c, query, values...)
|
||||
return
|
||||
}
|
||||
|
||||
@ -119,6 +119,8 @@ func GetCommands(where map[string]string, offset, limit int, order map[string]st
|
||||
}
|
||||
}
|
||||
|
||||
err = x.Select(cmds, query, values...)
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user