Browse Source

修改bug

chenbo 4 years ago
parent
commit
cd47cae312
2 changed files with 3 additions and 3 deletions
  1. 2 2
      lib/index_day_k.class.php
  2. 1 1
      lib/table/table.class.php

+ 2 - 2
lib/index_day_k.class.php

@@ -20,10 +20,10 @@ class Index_day_k {
         return $Table_index_day_k->getInfoByCodeAndDate($code, $date);
     }
 
-    static public function getList($filter = array(), $count=0, $page=0, $pagesize=0, $order=0, $limit = 0)
+    static public function getList($filter = array(), $count=0, $page=0, $pagesize=0, $order=0)
     {
         $Table_index_day_k = new Table_index_day_k();
-        return $Table_index_day_k->getList($filter, $count, $page, $pagesize, $order, $limit);
+        return $Table_index_day_k->getList($filter, $count, $page, $pagesize, $order);
     }
 
     static public function getAllList()

+ 1 - 1
lib/table/table.class.php

@@ -167,7 +167,7 @@ abstract class Table {
     //@param $count -- 0:返回列表 1:返回结果数量
     //@param $page -- 当前第几页
     //@param $pagesize -- 每页数量
-    // $page 参数 和  $limit 不能同时使用,只能使用一个对limit进行限制
+    //本函数与 getList 区别在于,使用date字段进行排序,没有date字段的表不能使用本函数
     public function getListOrderByDate($filter = array(), $count = 0, $page = 0, $pagesize = 0, $order = 0){
         $where = $this->filterToWhere($filter);
         $orderByStr = (empty($order) ? 'asc' : 'desc');