zhangdongming %!s(int64=2) %!d(string=hai) anos
pai
achega
52e9b9dc48
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                     """