|
|
@@ -17,16 +17,16 @@ class Table_index_sh extends Table {
|
|
|
//数据库结构
|
|
|
protected function struct(){
|
|
|
$attr = array();
|
|
|
-
|
|
|
- $attr['id'] = 'index_sh_id';
|
|
|
- $attr['date'] = 'index_sh_date';
|
|
|
- $attr['open_price'] = 'index_sh_open_price';
|
|
|
- $attr['close_price'] = 'index_sh_close_price';
|
|
|
- $attr['increase_price'] = 'index_sh_increase_price';
|
|
|
- $attr['increase_value'] = 'index_sh_increase_value';
|
|
|
- $attr['amount'] = 'index_sh_amount';
|
|
|
- $attr['value'] = 'index_sh_value';
|
|
|
- return $attr;
|
|
|
+ $attr['id'] = 'index_sh_id';
|
|
|
+ $attr['date'] = 'index_sh_date';
|
|
|
+ $attr['open_price'] = 'index_sh_open_price';
|
|
|
+ $attr['close_price'] = 'index_sh_close_price';
|
|
|
+ $attr['increase_price'] = 'index_sh_increase_price';
|
|
|
+ $attr['increase_value'] = 'index_sh_increase_value';
|
|
|
+ $attr['amount'] = 'index_sh_amount';
|
|
|
+ $attr['value'] = 'index_sh_value';
|
|
|
+ return $attr;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public function add($attr){
|
|
|
@@ -40,9 +40,8 @@ class Table_index_sh extends Table {
|
|
|
'index_sh_increase_price' => array('number', $attr['increase_price']),
|
|
|
'index_sh_amount' => array('number', $attr['amount']),
|
|
|
'index_sh_value' => array('number', $attr['value']),
|
|
|
-
|
|
|
);
|
|
|
-//var_dump($param);
|
|
|
+
|
|
|
return $this->pdo->sqlinsert($this->table_fullname, $param);
|
|
|
}
|
|
|
|