Order.php 799 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\task\model;
  10. use app\common\model\Order as OrderModel;
  11. /**
  12. * 订单模型
  13. * Class Order
  14. * @package app\common\model
  15. */
  16. class Order extends OrderModel
  17. {
  18. /**
  19. * 获取订单列表
  20. * @param array $filter
  21. * @param array $with
  22. * @return false|\PDOStatement|string|\think\Collection
  23. * @throws \think\db\exception\DataNotFoundException
  24. * @throws \think\db\exception\ModelNotFoundException
  25. * @throws \think\exception\DbException
  26. */
  27. public function getList($filter = [], $with = [])
  28. {
  29. return $this->with($with)
  30. ->where($filter)
  31. ->where('is_delete', '=', 0)
  32. ->select();
  33. }
  34. }