From af2ff6353abb09500ff08293490446a4d40d8e87 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Fri, 31 Jul 2020 17:03:19 +0800
Subject: [PATCH] 更换天气预测接口,根据城市名获取预测与实测数据对比

---
 src/main/resources/mapper/RealWeatherMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/mapper/RealTimeWeatherMapper.xml b/src/main/resources/mapper/RealWeatherMapper.xml
similarity index 68%
rename from src/main/resources/mapper/RealTimeWeatherMapper.xml
rename to src/main/resources/mapper/RealWeatherMapper.xml
index 855f42c..ad86d99 100644
--- a/src/main/resources/mapper/RealTimeWeatherMapper.xml
+++ b/src/main/resources/mapper/RealWeatherMapper.xml
@@ -1,15 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="com.moral.mapper.RealTimeWeatherMapper">
-    <resultMap id="BaseResultMap" type="com.moral.entity.RealTimeWeather">
+<mapper namespace="com.moral.mapper.RealWeatherMapper">
+    <resultMap id="BaseResultMap" type="com.moral.entity.RealWeather">
         <id column="monitor_point_id" property="monitorPointId" jdbcType="INTEGER"/>
     </resultMap>
-    <select id="getRealTimeWeather" resultType="java.util.Map">
+    <select id="getRealWeather" resultType="java.util.Map">
     select
     DATE_FORMAT(time, #{typeFormat}) time,
     json
     FROM
-    realtime_weather
+    real_weather
     WHERE
     time >= #{start}
     AND time <![CDATA[<]]> #{end}

--
Gitblit v1.8.0