From 81aeffc830a9c9b551c1acdf1126257d8c3c2c53 Mon Sep 17 00:00:00 2001
From: kaiyu <404897439@qq.com>
Date: Fri, 07 Jan 2022 12:01:29 +0800
Subject: [PATCH] screen-api 增加获取省内城市优良天气接口
---
screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java b/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java
index 613a00c..e227257 100644
--- a/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java
+++ b/screen-api/src/main/java/com/moral/api/service/impl/HistoryMonthlyServiceImpl.java
@@ -331,13 +331,13 @@
result = doubleStream.sum();
} else {
if ("min".equals(type)) {
- optionalDouble = doubleStream.average();
-
- } else if ("max".equals(type)) {
optionalDouble = doubleStream.min();
- } else if ("avg".equals(type)) {
+ } else if ("max".equals(type)) {
optionalDouble = doubleStream.max();
+
+ } else if ("avg".equals(type)) {
+ optionalDouble = doubleStream.average();
}
if (optionalDouble.isPresent()) {
--
Gitblit v1.8.0