add query

This commit is contained in:
Jay 2018-12-11 11:41:04 +08:00
parent da0a1cc5a6
commit 49903f9c9d

View File

@ -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
}