src/main/resources/mapper/WeatherMapper.xml
@@ -11,6 +11,15 @@ </resultMap> <select id="query" resultMap="WeatherResult"> select id, time, format(wind_speed, 2) "wind_speed", wind_direction, weather_condition, format(temperature, 2) "temperature" from yssh_weather <where> time between #{begin} and #{end} </where> order by time; </select> <select id="query2" resultMap="WeatherResult"> select id, time, format(wind_speed, 2) "wind_speed", wind_direction, weather_condition, format(temperature, 2) "temperature" from yssh_weather <where>