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);