selectField = ["id", "user_id", "order_no", "order_status", "total_amount", "status", "created_at", "updated_at", "deleted_at"]; $this->queryField = ['user_id' => '=','order_no' => 'like','order_status' => '=,status=']; $this->model = OrderModel::class; } /** * 获取订单管理列表 * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function list(): array { return $this->getPageList(); } /** * 获取订单管理详情 * @param $id * @return mixed * @throws Exception */ public function detail($id) { return $this->getDetail($id); } /** * 订单管理下拉列表 * @return mixed */ public function option() { $this->optionField = ['id', 'name']; return $this->getOption(); } /** * 创建订单管理 * @param $params * @return mixed * @throws Exception */ public function create($params): mixed { return $this->insert($params); } /** * 编辑订单管理 * @param $id * @param $params * @return mixed * @throws Exception */ public function update($id, $params): mixed { return $this->save($id, $params); } /** * 删除订单管理 * @param $ids * @return mixed|true * @throws Exception */ public function delete($ids): mixed { return $this->del($ids); } }