904118851 8 月之前
父节点
当前提交
95750fc633
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/backmgr/filter_data.lua

+ 1 - 1
service/backmgr/filter_data.lua

@@ -102,7 +102,7 @@ function M.search_filter_data(msg_body)
     if param ~= "" then
     if param ~= "" then
         param = " WHERE "..param
         param = " WHERE "..param
     end
     end
-    local sql = "SELECT * FROM filter_data "..param..up_down_param..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
+    local sql = "SELECT * FROM filter_data "..param..up_down_param.."ORDER BY id DESC"..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
 
 
     local res =  mysqldbx.query(sql)
     local res =  mysqldbx.query(sql)