From 5b00b28782f2c773aa9b63ac61584b70a366526c Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Fri, 30 Mar 2018 16:59:44 +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