From f6ecfd331ec959d7daea3fa5ebc262e7a50e4e01 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Fri, 14 Jan 2022 15:20:54 +0800 Subject: [PATCH] 图片上传测试 --- screen-job/src/main/java/com/moral/api/service/impl/HistoryDailyServiceImpl.java | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/screen-job/src/main/java/com/moral/api/service/impl/HistoryDailyServiceImpl.java b/screen-job/src/main/java/com/moral/api/service/impl/HistoryDailyServiceImpl.java index fa7187f..2dc5a04 100644 --- a/screen-job/src/main/java/com/moral/api/service/impl/HistoryDailyServiceImpl.java +++ b/screen-job/src/main/java/com/moral/api/service/impl/HistoryDailyServiceImpl.java @@ -85,11 +85,6 @@ dataMap.put("mac", mac); dataMap.put("time", start); - //��������������������������������������������������� - List<Map<String, Object>> tempValue = new ArrayList<>(value); - - //������������������������0������������O3������������������������������1���-8��� - value.removeIf(map -> ((Date) map.get("time")).getTime() == start.getTime()); Map<String, Object> params = new HashMap<>(); params.put("data", value); params.put("type", "day"); @@ -131,12 +126,8 @@ if (!ObjectUtils.isEmpty(o3AvgOfDay)) { jsonMap.putAll(o3AvgOfDay); } - //������������������������������������ - tempValue.removeIf(o -> ((Date) o.get("time")).getTime() == end.getTime()); //��������������������������� - params.put("data", tempValue); - Map<String, Object> windDirAvg = AmendUtils.getWindDirAvg(params); if (!ObjectUtils.isEmpty(windDirAvg)) { jsonMap.putAll(windDirAvg); @@ -146,7 +137,7 @@ String sensorCode = sensor.getCode(); Double upper = sensor.getUpper(); Double lower = sensor.getLower(); - OptionalDouble optionalDouble = tempValue.parallelStream() + OptionalDouble optionalDouble = value.parallelStream() .flatMapToDouble(v -> { Map<String, Object> dataValue = JSONObject.parseObject((String) v.get("value"), Map.class); Object sensorValue = dataValue.get(sensorCode); @@ -168,12 +159,12 @@ //������������������������������������ double aDouble = Double.parseDouble(sensorValue.toString()); if (!ObjectUtils.isEmpty(upper)) { - if (aDouble < upper) { + if (aDouble > upper) { return null; } } if (!ObjectUtils.isEmpty(lower)) { - if (aDouble > lower) { + if (aDouble < lower) { return null; } } -- Gitblit v1.8.0