| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- *
- * @copyright ©2020 点小铺
- * @author hanj
- * @link: https://dyuit.com
- * Created by VSCode
- */
- 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();
- }
- }
|