zhangdongming 1 жил өмнө
parent
commit
1f2548c19c

+ 1 - 1
Controller/SensorGateway/SmartSocketController.py

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