From dadf0f40a3aa3d500aedf794def89dfbbf466e35 Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Thu, 21 Nov 2024 14:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E8=A1=8C=E7=9B=B8=E6=9C=BA?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E7=9B=B8=E8=B7=9D=E8=B7=9D=E7=A6=BB=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/zc/business/controller/VideoController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/VideoController.java b/zc-business/src/main/java/com/zc/business/controller/VideoController.java index 86f4121b..e3ba32da 100644 --- a/zc-business/src/main/java/com/zc/business/controller/VideoController.java +++ b/zc-business/src/main/java/com/zc/business/controller/VideoController.java @@ -528,7 +528,7 @@ public class VideoController extends BaseController { // 排序 List sortedList = upCameraList.stream() .sorted(Comparator.comparingInt(this::cameraTypeSorted) - .thenComparing(DcDevice::getStakeMark, Comparator.reverseOrder())) + .thenComparing(dcDevice -> Math.abs(pileNumTransformMetre(dcDevice.getStakeMark()) - pileNumDistance))) .collect(Collectors.toList()); result.put("upCamera",sortedList);