From 6e54c31df658795ec830fc93a26cd6e3d910e2ef Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Fri, 20 Apr 2018 10:29:45 +0800
Subject: [PATCH] 修正函数方法参数

---
 application/core/System/Model/Base.php |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/application/core/System/Model/Base.php b/application/core/System/Model/Base.php
index f4cbf7e..b6d815e 100644
--- a/application/core/System/Model/Base.php
+++ b/application/core/System/Model/Base.php
@@ -50,8 +50,37 @@
         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;
+    }
+
+
+
 }

--
Gitblit v1.8.0