瀏覽代碼

单机故障排序

wangchangsheng 3 年之前
父節點
當前提交
4eeda565f1
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/main/java/com/gyee/frame/service/health/HealthMainService.java

+ 8 - 0
src/main/java/com/gyee/frame/service/health/HealthMainService.java

@@ -867,8 +867,16 @@ public class HealthMainService {
                 map.put("yczqlday", yczqlday);
                 map.put("yczqlmonth", yczqlmonth);
                 map.put("wtIdls", wtIdls);
+                Collections.sort(gzls, new Comparator<Map<String, String>>() {
+                    public int compare(Map<String, String> o1, Map<String, String> o2) {
+                        String stopTime1 = o1.get("stopTime") ;//name1是从你list里面拿出来的一个
+                        String stopTime2 = o2.get("stopTime") ; //name1是从你list里面拿出来的第二个name
+                        return stopTime2.compareTo(stopTime1);
+                    }
+                });
                 map.put("gzls", gzls);
 
+
             }
         }