Explorar el Código

Update table_day_k.class.php

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