public function adminList($listCond, &$retDataContainer) { // 列表的必须字段 if (!DataValidater::isAllExist(array("start", "length"), $listCond)) { return Status::RET_INVALID_INPUT_PARAM_FORMAT; } // 获得数据 $start = $listCond["start"]; $length = $listCond["length"]; // 非空可选项 $order = DataLoader::exportColumn("order", $listCond); $orderCol = $orderDir = null; if ($order != null) { $orderCol = DataLoader::exportColumn("column", $order[0]); $orderDir = DataLoader::exportColumn("dir", $order[0]); } $search = DataLoader::exportColumn("search", $listCond); if ($search != null) { $search = DataLoader::exportColumn("value", $search); } /*$where = array(); $orgType = DataLoader::exportColumn( "org_type", $listCond ); if( $orgType != null ) { $where[ "org_type" ] = $orgType; } $orgDistrId = DataLoader::exportColumn( "org_distr_uuid", $listCond ); if( $orgDistrId != null ) { $where[ "org_distr_uuid" ] = $orgDistrId; }*/ return Table::pull(new Users(), $start, $length, $retDataContainer, $search, $orderCol, $orderDir); }
private function initData() { // 载入输入 $this->rawData = DataLoader::post(); if (!is_array($this->rawData)) { Status::RET_INVALID_INPUT_PARAM_FORMAT; } return Status::RET_SUCCESSFUL; }