浏览代码

Update table_day_k.class.php

wanggangtao 5 年之前
父节点
当前提交
db5e22a19f
共有 1 个文件被更改,包括 2 次插入1 次删除
  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){