Przeglądaj źródła

Update table_day_k.class.php

wanggangtao 5 lat temu
rodzic
commit
db5e22a19f
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      lib/table/table_day_k.class.php

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

@@ -226,7 +226,8 @@ class Table_day_k extends Table {
             $where.=" and day_k_date <=".$date;
         }
         $sql.=$where;
-
+        $order=" order by day_k_date desc limit 1 ";
+        $sql.=$order;
         $rs = $this->pdo->sqlQuery($sql);
         $r  = array();
         if($rs){