| | |
| | | </if> |
| | | </trim> |
| | | </select> |
| | | |
| | | |
| | | <!--根据指定条件查询温度的最大值与最小值--> |
| | | <select id="selectMaxMinTemperature" resultType="com.dy.pipIrrGlobal.voRm.VoWeatherMaxMinTmp"> |
| | | SELECT max(air_temperature) maxTmp, min(air_temperature) minTmp |
| | | FROM rm_weather_history tb |
| | | <where> |
| | | <if test="weatherId != null"> |
| | | AND tb.weather_id = #{weatherId} |
| | | </if> |
| | | <if test="startId != null"> |
| | | AND tb.id >= #{startId} |
| | | </if> |
| | | <if test="endId != null"> |
| | | AND tb.id <= #{endId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
| | | <!--@mbg.generated--> |
| | | delete from rm_weather_history |