cfmgrv4 init...10

This commit is contained in:
최준흠 2025-03-13 13:24:57 +09:00
parent a6a1599ab1
commit 19cac14fa7

View File

@ -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();