|
@@ -151,6 +151,8 @@ class Table_day_k extends Table {
|
|
|
$sql = "select * from ". $this->table_fullname ." where 1=1 ";
|
|
$sql = "select * from ". $this->table_fullname ." where 1=1 ";
|
|
|
$where =" and day_k_code=".$stock_code ." and day_k_timestamp between ".$start_date." and ".$end_date ;
|
|
$where =" and day_k_code=".$stock_code ." and day_k_timestamp between ".$start_date." and ".$end_date ;
|
|
|
$sql.=$where;
|
|
$sql.=$where;
|
|
|
|
|
+ $order=" order by day_k_timestamp desc";
|
|
|
|
|
+ $sql.=$order;
|
|
|
$rs = $this->pdo->sqlQuery($sql);
|
|
$rs = $this->pdo->sqlQuery($sql);
|
|
|
$r = array();
|
|
$r = array();
|
|
|
if($rs){
|
|
if($rs){
|