This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/task/model/Order.php
2020-04-25 22:20:29 +08:00

32 lines
690 B
PHP

<?php
namespace app\task\model;
use app\common\model\Order as OrderModel;
/**
* 订单模型
* Class Order
* @package app\common\model
*/
class Order extends OrderModel
{
/**
* 获取订单列表
* @param array $filter
* @param array $with
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getList($filter = [], $with = [])
{
return $this->with($with)
->where($filter)
->where('is_delete', '=', 0)
->select();
}
}