| | |
| | | * @param [type] $query [description] |
| | | * @return [type] [description] |
| | | */ |
| | | public function update($data, $query){ |
| | | public function update($data, $query = array()){ |
| | | return $this->db->update($this->table, $data, $query); |
| | | } |
| | | |
| | | /** |
| | | * 聚合 |
| | | * @param [type] $params [description] |
| | | * @return [type] [description] |
| | | */ |
| | | public function aggregate($params){ |
| | | return $this->db->aggregate($this->table, $params); |
| | | } |
| | | |
| | | /** |
| | | * 删除[禁止删除所有] |
| | | * @param array $query [description] |
| | | * @return [type] [description] |
| | | */ |
| | | public function delete($query = array()){ |
| | | if(!empty($query)) |
| | | return $this->db->delete($this->table, $query); |
| | | else |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | } |