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