From 07a2ed1e505a9b983578336866117dd80a1352e9 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Thu, 03 May 2018 09:44:22 +0800
Subject: [PATCH] 修改
---
application/core/System/Model/Base.php | 31 ++++++++++++++++++++++++++++++-
1 files changed, 30 insertions(+), 1 deletions(-)
diff --git a/application/core/System/Model/Base.php b/application/core/System/Model/Base.php
index f4cbf7e..80a189b 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);
}
- public function update($data, $query){
+ /**
+ * ������
+ * @param [type] $data [description]
+ * @param [type] $query [description]
+ * @return [type] [description]
+ */
+ 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;
+ }
+
+
+
}
--
Gitblit v1.8.0