| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- /**
- * Class Day_k_base
- * @author 王刚涛
- * 日线数据
- */
- class Immediate_base {
- static public function getInfoById($id)
- {
- $Table_immediate_base = new Table_immediate_base();
- return $Table_immediate_base->getInfoById($id);
- }
- static public function add($attrs)
- {
- //$date=date("Ym",time());
- $Table_immediate_base = new Table_immediate_base();
- return $Table_immediate_base->add($attrs);
- }
- static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
- {
- $Table_immediate_base = new Table_immediate_base();
- return $Table_immediate_base->getList($filter, $count, $page, $pageSize);
- }
- // /***
- // * @param $attrs
- // * @param int $date
- // * @return mixed
- // * @throws Exception
- // * 添加某一直股票的历史数据
- // */
- // static public function insert($attrs,$date=0)
- // {
- // if (empty($attrs)) throw new Exception('参数不能为空', 102);
- // if($date===0)
- // {
- // $date=strtotime(date('Ymd'));
- // }
- // $Table_immediate_base = new Table_immediate_base($date);
- // $id = $Table_immediate_base->insert($attrs);
- // return $id;
- // }
- }
- ?>
|