Order.php 690 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\task\model;
  3. use app\common\model\Order as OrderModel;
  4. /**
  5. * 订单模型
  6. * Class Order
  7. * @package app\common\model
  8. */
  9. class Order extends OrderModel
  10. {
  11. /**
  12. * 获取订单列表
  13. * @param array $filter
  14. * @param array $with
  15. * @return false|\PDOStatement|string|\think\Collection
  16. * @throws \think\db\exception\DataNotFoundException
  17. * @throws \think\db\exception\ModelNotFoundException
  18. * @throws \think\exception\DbException
  19. */
  20. public function getList($filter = [], $with = [])
  21. {
  22. return $this->with($with)
  23. ->where($filter)
  24. ->where('is_delete', '=', 0)
  25. ->select();
  26. }
  27. }