getCondition($where_array) ; return Db::update('complain_talk',$update_array,$where) ; } /* * 删除 * @param array $param * @return bool */ public function dropComplainTalk($param){ $where = $this->getCondition($param) ; return Db::delete('complain_talk', $where) ; } /* * 获得列表 * @param array $condition * @param obj $page //分页对象 * @return array */ public function getComplainTalk($condition='',$page='',$field='*'){ $param = array() ; $param['table'] = 'complain_talk' ; $param['field'] = $field; $param['where'] = $this->getCondition($condition); $param['order'] = $condition['order'] ? $condition['order']: ' talk_id desc '; return Db::select($param,$page) ; } }