OrderModel.php 461 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\common\model;
  3. class OrderModel extends BaseModel
  4. {
  5. protected $table = 'erp_order';
  6. protected function genSchema(array $schema)
  7. {
  8. // TODO: Implement genSchema() method.
  9. }
  10. public function findByPaginate(array $params) {
  11. $where = [
  12. ['is_delete', '=', 0]
  13. ];
  14. return $this->where($where)->order('create_time','desc')->paginate(['list_rows'=>10, "query" => $params]);
  15. }
  16. }