Browse Source

单机故障排序

wangchangsheng 3 years ago
parent
commit
4eeda565f1

+ 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("yczqlday", yczqlday);
                 map.put("yczqlmonth", yczqlmonth);
                 map.put("yczqlmonth", yczqlmonth);
                 map.put("wtIdls", wtIdls);
                 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);
                 map.put("gzls", gzls);
 
 
+
             }
             }
         }
         }