Browse Source

巡检模块表调整

jichaobo 2 years ago
parent
commit
4cf95603b2

+ 3 - 0
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/AlarmFireServiceImpl.java

@@ -147,15 +147,18 @@ public class AlarmFireServiceImpl extends AbstractCrudService<AlarmFireMapper, A
         List<Integer> alarmCountList = new ArrayList<>();
         List<Integer> handleCountList = new ArrayList<>();
         List<String> alarmTimeList = new ArrayList<>();
+        List<String> handleRateList = new ArrayList<>();
         for (int i = 0; i < list.size(); i++) {
             alarmCountList.add(list.get(i).getCount());
             handleCountList.add(list.get(i).getSum());
             alarmTimeList.add(list.get(i).getAlarmTime());
+            handleRateList.add(OnlineMethod.myPercent(list.get(i).getSum(), list.get(i).getCount()));
         }
         Map<String, Object> map = new HashMap<>();
         map.put("alarmCountList", alarmCountList);
         map.put("handleCountList", handleCountList);
         map.put("alarmTimeList", alarmTimeList);
+        map.put("handleRateList", handleRateList);
         return map;
     }