| 12345678910111213141516171819202122232425 |
- <?php
- namespace app\common\model;
- class OrderModel extends BaseModel
- {
- protected $table = 'erp_order';
- protected function genSchema(array $schema)
- {
- // TODO: Implement genSchema() method.
- }
- public function findByPaginate(array $params) {
- $where = [
- ['is_delete', '=', 0]
- ];
- return $this->where($where)->order('create_time','desc')->paginate(['list_rows'=>10, "query" => $params]);
- }
- }
|