field($field); if (empty($where) === false) { $result = $result->where($where); } $result = $result->select(); return $result; }//end selectWords() /** * 数据修改 * * @access public * @param mixed $data 数据 * @param mixed $where 条件 * @return array 返回类型 */ public function updateWords($where, $data) { $result = $this->where($where)->update($data); return $result; }//end updateWords() /** * 数据删除 * * @access public * @param mixed $where 条件 * @return array 返回类型 */ public function deleteWords($where) { $result = $this->where($where)->delete(); return $result; }//end deleteWords() /** * 数据增加 * * @access public * @param mixed $data 数据 * @return array 返回类型 */ public function addWords($data) { $result = $this->insertGetId($data); return $result; }//end addWords() /** * 数据增加 * * @access public * @param mixed $where 条件 * @return array 返回类型 */ public function findHas($where) { $result = $this->field('id')->where($where)->find(); return $result; }//end findHas() }