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

+ 1 - 1
service/backmgr/whitelist_books.lua

@@ -91,7 +91,7 @@ function M.search_book_list(msg_body)
         param = " WHERE "..param
     end
 
-    local sql = "SELECT * FROM whitelist_books "..param..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
+    local sql = "SELECT * FROM whitelist_books "..param.."ORDER BY id DESC"..string.format(" LIMIT %d OFFSET %d ",page_size, offset)
    
     local list = mysqldbx.query(sql)