12345678910111213141516171819202122232425262728293031 |
- <?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();
- }
- }
|