瀏覽代碼

获取所有的相机列表修改

gao.qiang 6 月之前
父節點
當前提交
25b3dac1e5
共有 1 個文件被更改,包括 15 次插入15 次删除
  1. 15 15
      vehicle-sdk/src/main/java/com/ozs/controller/upload/GeoHazardMonitorTokenController.java

+ 15 - 15
vehicle-sdk/src/main/java/com/ozs/controller/upload/GeoHazardMonitorTokenController.java

@@ -1832,21 +1832,21 @@ public class GeoHazardMonitorTokenController {
                 }
                 baseCameraManagement.setRailwayName(baseRailwayManagement.getRailwayName());
             }
-            list.sort(new Comparator<BaseCameraManagement>() {
-                @Override
-                public int compare(BaseCameraManagement o1, BaseCameraManagement o2) {
-                    String name1 = ChineseToPingyin.convertHanziToPinyin(o1.getRailwayName());
-                    String substring1 = name1.substring(0, 1);
-                    String name2 = ChineseToPingyin.convertHanziToPinyin(o2.getRailwayName());
-                    String substring2 = name2.substring(0, 1);
-                    int i = substring1.compareTo(substring2);
-                    if (i == 0) {
-                        return -o1.getInstallMile() - o2.getInstallMile();
-                    } else {
-                        return i;
-                    }
-                }
-            });
+//            list.sort(new Comparator<BaseCameraManagement>() {
+//                @Override
+//                public int compare(BaseCameraManagement o1, BaseCameraManagement o2) {
+//                    String name1 = ChineseToPingyin.convertHanziToPinyin(o1.getRailwayName());
+//                    String substring1 = name1.substring(0, 1);
+//                    String name2 = ChineseToPingyin.convertHanziToPinyin(o2.getRailwayName());
+//                    String substring2 = name2.substring(0, 1);
+//                    int i = substring1.compareTo(substring2);
+//                    if (i == 0) {
+//                        return -o1.getInstallMile() - o2.getInstallMile();
+//                    } else {
+//                        return i;
+//                    }
+//                }
+//            });
             List<RespCameraVo> cameraVos = new ArrayList<>();
             for (BaseCameraManagement baseCameraManagement : list) {
                 RespCameraVo respCameraVo = new RespCameraVo();