|
|
@@ -8,12 +8,6 @@
|
|
|
|
|
|
class Stock {
|
|
|
|
|
|
- static public function getAllList()
|
|
|
- {
|
|
|
- $Table_stock = new Table_stock();
|
|
|
- return $Table_stock->getList(array(), 0, 0, 0, 1); //升序
|
|
|
- }
|
|
|
-
|
|
|
static public function getInfoById($id)
|
|
|
{
|
|
|
$Table_stock = new Table_stock();
|
|
|
@@ -26,20 +20,12 @@ class Stock {
|
|
|
return $Table_stock->getInfoByCode($code);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- static public function getList($filter = array(), $sector=0, $page=0, $pageSize=0)
|
|
|
- {
|
|
|
- $Table_stock = new Table_stock();
|
|
|
- return $Table_stock->getList($filter, $sector, $page, $pageSize);
|
|
|
- }
|
|
|
-
|
|
|
- static public function getStockList($filter = array(), $count, $page, $pagesize)
|
|
|
+ static public function getList($filter = array(), $count=0, $page=0, $pagesize=0, $order=0)
|
|
|
{
|
|
|
$Table_stock = new Table_stock();
|
|
|
- return $Table_stock->getStockList($filter, $count,$page, $pagesize);
|
|
|
+ return $Table_stock->getList($filter, $count, $page, $pagesize, $order);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
static public function addOrUpdateByCode($attrs)
|
|
|
{
|
|
|
if (empty($attrs)) throw new Exception('参数不能为空', 101);
|
|
|
@@ -49,6 +35,12 @@ class Stock {
|
|
|
return $id;
|
|
|
}
|
|
|
|
|
|
+ static public function getAllList()
|
|
|
+ {
|
|
|
+ $Table_stock = new Table_stock();
|
|
|
+ return $Table_stock->getList(array(), 0, 0, 0, 1); //升序
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
?>
|