table_st_log.class.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. protected $table_id = 'st_log_id';//指定ID字段名称,必须
  12. protected $table_status = '';//指定状态字段名称,如果有
  13. protected $table_order = '';//指定排序字段名称,如果有
  14. //数据库结构
  15. protected function struct(){
  16. $attr = array();
  17. $attr['id'] = 'st_log_id';
  18. $attr['date'] = 'st_log_date';
  19. $attr['open_price'] = 'st_log_code';
  20. $attr['close_price'] = 'st_log_pretype';
  21. $attr['tradable_amount'] = 'st_log_ posttype';
  22. return $attr;
  23. }
  24. public function add($attr){
  25. $param = array (
  26. 'admingroup_name' => array('string', $attr['name'])
  27. );
  28. return $this->pdo->sqlinsert($this->table_fullname, $param);
  29. }
  30. }
  31. ?>