application/core/System/Model/Base.php
@@ -50,8 +50,18 @@ 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); } public function aggregate($params){ return $this->db->aggregate($this->table, $params); } }