application/core/System/Model/Base.php
@@ -60,8 +60,27 @@ 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; } }