|  |  | 
 |  |  |         return $this->db->insert($this->table, $data); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 更新 | 
 |  |  |      * @param  [type] $data  [description] | 
 |  |  |      * @param  [type] $query [description] | 
 |  |  |      * @return [type]        [description] | 
 |  |  |      */ | 
 |  |  |     public function update($data, $query){ | 
 |  |  |         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; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |