| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- /**
- * Class Day_k_base
- * @author 王刚涛
- * 日线数据
- */
- class Index_day_k {
- public function __construct()
- {
- }
- static public function getInfoById($id)
- {
- $Table_index_day_k = new Table_index_day_k();
- return $Table_index_day_k->getInfoById($id);
- }
- static public function add($attrs){
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- $Table_index_day_k = new Table_index_day_k();
- $id = $Table_index_day_k->add($attrs);
- return $id;
- }
- static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
- {
- $Table_index_day_k = new Table_index_day_k();
- return $Table_index_day_k->getList($filter, $count, $page, $pageSize);
- }
- static public function insert($attrs)
- {
- if (empty($attrs)) throw new Exception('参数不能为空', 102);
- $Table_index_day_k = new Table_index_day_k();
- $id = $Table_index_day_k->insert($attrs);
- return $id;
- }
- static public function getIndexListHistroy($start_date,$end_date,$index_type,$num,$order)
- {
- $Table_index_day_k = new Table_index_day_k();
- return $Table_index_day_k->getIndexListHistroy($start_date,$end_date,$index_type,$num,$order);
- }
- }
- ?>
|