cfmgrv4 init...10
This commit is contained in:
parent
a6a1599ab1
commit
19cac14fa7
@ -519,6 +519,13 @@ abstract class CommonController extends BaseController
|
|||||||
$this->order_field,
|
$this->order_field,
|
||||||
$this->order_value
|
$this->order_value
|
||||||
));
|
));
|
||||||
|
} else {
|
||||||
|
$this->getService()->getModel()->orderBy(sprintf(
|
||||||
|
"%s.%s %s",
|
||||||
|
$this->getService()->getModel()::TABLE,
|
||||||
|
$this->getService()->getModel()::PK,
|
||||||
|
"DESC"
|
||||||
|
));
|
||||||
}
|
}
|
||||||
$this->getService()->getModel()->limit($this->per_page, $this->page * $this->per_page - $this->per_page);
|
$this->getService()->getModel()->limit($this->per_page, $this->page * $this->per_page - $this->per_page);
|
||||||
$entitys = $this->getService()->getModel()->select($this->getService()->getModel()::TABLE . '.*')->findAll();
|
$entitys = $this->getService()->getModel()->select($this->getService()->getModel()::TABLE . '.*')->findAll();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user