objDEnterpriseCategory = new DEnterpriseCategory('default'); } /** * 查出所有企业分类 * @return ResultWrapper * @throws \Exception */ public function getAllEnterpriseCategory() { $selectParams['deleteStatus'] = StatusCode::$standard; $dbResult = $this->objDEnterpriseCategory->select($selectParams); if ($dbResult === false) { return ResultWrapper::fail($this->objDEnterpriseCategory->error(), ErrorCode::$dberror); } return ResultWrapper::success($dbResult); } }