From 5e240474e033b94c9ca6ad389a40b2bb631c559c Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Fri, 5 Jan 2024 14:33:31 +0800 Subject: [PATCH] fixed --- app/api/controller/dataview/DeviceController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/controller/dataview/DeviceController.php b/app/api/controller/dataview/DeviceController.php index 435f6c56..661fce3e 100644 --- a/app/api/controller/dataview/DeviceController.php +++ b/app/api/controller/dataview/DeviceController.php @@ -50,6 +50,8 @@ class DeviceController extends BaseApiController } }) ->whereWeek('ma.create_time') + ->order('ma.id', 'desc') + ->limit(100) ->select(); return $this->success('成功', compact('list')); }