getInfoById($id); } static public function getInfoByCode($code) { $Table_stock = new Table_stock(); return $Table_stock->getInfoByCode($code); } static public function getList($filter = array(), $count=0, $page=0, $pagesize=0, $order=0, $limit = 0) { $Table_stock = new Table_stock(); return $Table_stock->getList($filter, $count, $page, $pagesize, $order, $limit); } static public function getAllList() { $Table_stock = new Table_stock(); return $Table_stock->getList(); } static public function addOrUpdateByCode($attrs) { if (empty($attrs)) throw new Exception('参数不能为空', 101); if (empty($attrs['code'])) throw new Exception('股票代码不能为空', 102); $Table_stock = new Table_stock(); $id = $Table_stock->addOrUpdateByCode($attrs); return $id; } } ?>