| | |
| | | * @Date: 2021/11/2 |
| | | */ |
| | | private Map<String, Object> calculate6ParamAvg(List<CityAqi> cityAqiList) { |
| | | Double co = calculateSensorAvg(cityAqiList, "co"); |
| | | Double pm2_5 = calculateSensorAvg(cityAqiList, "pm2_5"); |
| | | Double pm10 = calculateSensorAvg(cityAqiList, "pm10"); |
| | | Double so2 = calculateSensorAvg(cityAqiList, "so2"); |
| | | Double no2 = calculateSensorAvg(cityAqiList, "no2"); |
| | | Double o3 = calculateSensorAvg(cityAqiList, "o3"); |
| | | Double co = calculateSensorAvg(cityAqiList, "CO"); |
| | | Double pm2_5 = calculateSensorAvg(cityAqiList, "PM2_5"); |
| | | Double pm10 = calculateSensorAvg(cityAqiList, "PM10"); |
| | | Double so2 = calculateSensorAvg(cityAqiList, "SO2"); |
| | | Double no2 = calculateSensorAvg(cityAqiList, "NO2"); |
| | | Double o3 = calculateSensorAvg(cityAqiList, "O3"); |
| | | Map<String, Object> result = new HashMap<>(); |
| | | result.put(Constants.SENSOR_CODE_CO, co); |
| | | result.put(Constants.SENSOR_CODE_NO2, no2); |