12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\dao\order;
- use app\dao\BaseDao;
- use app\model\order\StoreOrderStatus;
- class StoreOrderStatusDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return StoreOrderStatus::class;
- }
-
- public function getStatusList(array $where, int $page = 0, int $limit = 0)
- {
- return $this->search($where)
- ->when($page && $limit, function ($query) use ($page, $limit) {
- $query->page($page, $limit);
- })->order('change_time desc')->select()->toArray();
- }
- }
|