浏览代码

优化排序

zhangdongming 1 年之前
父节点
当前提交
1f2548c19c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/SensorGateway/SmartSocketController.py

+ 1 - 1
Controller/SensorGateway/SmartSocketController.py

@@ -585,7 +585,7 @@ class SmartSocketView(View):
                             created_time
                         FROM scene_log
                         WHERE device_id = %s {}
-                        ORDER BY created_time,id DESC
+                        ORDER BY created_time DESC,id DESC
                         LIMIT %s, %s;
                     """