chenbo %!s(int64=4) %!d(string=hai) anos
pai
achega
800ed0b645
Modificáronse 3 ficheiros con 4 adicións e 6 borrados
  1. 2 2
      lib/index.class.php
  2. 2 2
      lib/stock.class.php
  3. 0 2
      lib/table/table.class.php

+ 2 - 2
lib/index.class.php

@@ -20,10 +20,10 @@ class Index {
         return $Table_index->getInfoByCode($code);
     }
 
-    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 = new Table_index();
-        return $Table_index->getList($filter, $count, $page, $pagesize, $order, $limit);
+        return $Table_index->getList($filter, $count, $page, $pagesize, $order);
     }
 
     static public function getAllList()

+ 2 - 2
lib/stock.class.php

@@ -20,10 +20,10 @@ class Stock {
         return $Table_stock->getInfoByCode($code);
     }
 
-    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_stock = new Table_stock();
-        return $Table_stock->getList($filter, $count, $page, $pagesize, $order, $limit);
+        return $Table_stock->getList($filter, $count, $page, $pagesize, $order);
     }
 
     static public function getAllList()

+ 0 - 2
lib/table/table.class.php

@@ -125,7 +125,6 @@ abstract class Table {
     //@param $count -- 0:返回列表 1:返回结果数量
     //@param $page -- 当前第几页
     //@param $pagesize -- 每页数量
-    // $page 参数 和  $limit 不能同时使用,只能使用一个对limit进行限制
     public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0, $order = 0){
         $where = $this->filterToWhere($filter);
         $orderByStr = (empty($order) ? 'asc' : 'desc');
@@ -169,7 +168,6 @@ abstract class Table {
     //@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');