mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 23:52:49 +08:00
改进Query类的paginate方法
This commit is contained in:
@@ -1002,6 +1002,9 @@ class Query
|
|||||||
|
|
||||||
if (!isset($total) && !$simple) {
|
if (!isset($total) && !$simple) {
|
||||||
$options = $this->getOptions();
|
$options = $this->getOptions();
|
||||||
|
if (isset($options['order'])) {
|
||||||
|
unset($this->options['order']);
|
||||||
|
}
|
||||||
$bind = $this->bind;
|
$bind = $this->bind;
|
||||||
$total = $this->count();
|
$total = $this->count();
|
||||||
$results = $this->options($options)->bind($bind)->page($page, $listRows)->select();
|
$results = $this->options($options)->bind($bind)->page($page, $listRows)->select();
|
||||||
|
|||||||
Reference in New Issue
Block a user