|
|
@@ -217,12 +217,13 @@ class Table_day_k extends Table {
|
|
|
$where =" and day_k_code=".$stock_code ;
|
|
|
if($date==0){//获取的是当天的数据
|
|
|
|
|
|
- $date = (int)(strtotime(date("Y-m-d",time())));
|
|
|
- $where.=" and day_k_timestamp = ".$date;
|
|
|
+// $date = (int)(strtotime(date("Y-m-d",time())));
|
|
|
+ $date=date("Ymd",time());
|
|
|
+ $where.=" and day_k_date = ".$date;
|
|
|
|
|
|
}else{//获取某一天的数据
|
|
|
$date = $this->pdo->sql_check_input(array('number', $date));
|
|
|
- $where.=" and day_k_timestamp =".$date;
|
|
|
+ $where.=" and day_k_date =".$date;
|
|
|
}
|
|
|
$sql.=$where;
|
|
|
|