From 609e9ec46167d32920afbcf3425eb7a2a622a521 Mon Sep 17 00:00:00 2001
From: colly_wyx <wangyixiong_007@163.com>
Date: Fri, 20 Apr 2018 10:19:32 +0800
Subject: [PATCH] 更新时间区间
---
application/core/System/Model/Base.php | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/application/core/System/Model/Base.php b/application/core/System/Model/Base.php
index 5e35537..b6d815e 100644
--- a/application/core/System/Model/Base.php
+++ b/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;
+ }
+
+
+
}
--
Gitblit v1.8.0