1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\dao\supplier;
- use app\dao\BaseDao;
- use app\model\supplier\SupplierTicketPrint;
- class SupplierTicketPrintDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return SupplierTicketPrint::class;
- }
-
- public function getList(array $where = [], int $page = 0, int $limit = 0)
- {
- return $this->search($where)
- ->when($page != 0 && $limit != 0, function ($query) use ($page, $limit) {
- $query->page($page, $limit);
- })->order('id desc')->select()->toArray();
- }
- }
|