model = new \app\agent\model\order\Mission(); } /** * @desc desc * @return mixed * @throws \Lettered\Support\Exceptions\FailedException * @throws \think\exception\DbException * @author weichuanbao<654745815@qq.com> * @date 2021/12/10 0010 */ public function index() { $where[] = ['area_id', 'eq', $this->auth->user()->area_id]; return IResponse::paginate($this->model->where($where)->with(['mission','user','service'])->order(['created_at' => 'desc']) ->paginate(input('limit'),false)); } }