Explorar el Código

Update table_day_k.class.php

wanggangtao hace 5 años
padre
commit
da56c73f43
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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){