From 121a5b01a2461b5d9d5c188f9dd36c2e4673db9d Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Mon, 28 Sep 2020 10:41:08 +0800
Subject: [PATCH] 实时风向与因子数据从同一个websokceket获取优化

---
 src/main/resources/mapper/ForecastWeatherMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/ForecastWeatherMapper.xml b/src/main/resources/mapper/ForecastWeatherMapper.xml
index e0e76d8..d9403c5 100644
--- a/src/main/resources/mapper/ForecastWeatherMapper.xml
+++ b/src/main/resources/mapper/ForecastWeatherMapper.xml
@@ -45,7 +45,7 @@
 
     <select id="getO38Hours" resultType="java.util.Map">
         select
-        AVG(json->'$.O3C')  as 'O3C_8H'
+        cast(AVG(json->'$.O3C') as UNSIGNED  integer) 'O3_8H'
         FROM
         forecast_weather
         WHERE

--
Gitblit v1.8.0