table_st_log.class.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * 数据库表:管理员组
  4. *
  5. * @createtime 2018/03/01
  6. * @author 空竹
  7. * @copyright 芝麻开发(http://www.zhimawork.com)
  8. */
  9. class Table_st_log extends Table {
  10. protected $table_name = 'st_log';//表名,不带前缀,前缀在config中定义
  11. //数据库结构
  12. protected function struct(){
  13. $attr = array();
  14. $attr['id'] = 'st_log_id';
  15. $attr['date'] = 'st_log_date';
  16. $attr['open_price'] = 'st_log_code';
  17. $attr['close_price'] = 'st_log_pretype';
  18. $attr['tradable_amount'] = 'st_log_ posttype';
  19. return $attr;
  20. }
  21. public function add($attr){
  22. $param = array (
  23. 'admingroup_name' => array('string', $attr['name'])
  24. );
  25. return $this->pdo->sqlinsert($this->table_fullname, $param);
  26. }
  27. //获取列表(分页)
  28. //$count、$page和$pagesize都为0时,返回全部结果(适用于无需分页的情况)
  29. //
  30. //@param $filter array -- 过滤条件,格式见Table::filterToWhere
  31. //@param $count -- 0:返回列表 1:返回结果数量
  32. //@param $page -- 当前第几页
  33. //@param $pagesize -- 每页数量
  34. public function getList($filter = array(), $count = 0, $page = 0, $pagesize = 0)
  35. {
  36. }
  37. }
  38. ?>