add query
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user