Kaynağa Gözat

Update table_day_k.class.php

wanggangtao 5 yıl önce
ebeveyn
işleme
da56c73f43
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      lib/table/table_day_k.class.php

+ 2 - 0
lib/table/table_day_k.class.php

@@ -151,6 +151,8 @@ class Table_day_k extends Table {
         $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 ;
         $sql.=$where;
+        $order=" order by day_k_timestamp desc";
+        $sql.=$order;
         $rs = $this->pdo->sqlQuery($sql);
         $r  = array();
         if($rs){