add($attrs); return $id; } /*** * @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('Ym')); } $Table_day_k_base = new Table_day_k_base($date); $id = $Table_day_k_base->insert($attrs); return $id; } /** * 管理员日志记录列表 * * @param $page 当前页 * @param $pagesize 每页大小 * */ static public function getListByPage($page, $pagesize){ $filter = array(); $Table_day_k_base = new Table_day_k_base(); return $Table_day_k_base->getList($filter, 0, $page, $pagesize); } //管理员日志总数 static public function getCountAll(){ $filter = array(); $Table_day_k_base = new Table_st_log(); return $Table_day_k_base->getList($filter, 1); } } ?>