pipIrr-platform/pipIrr-global/src/main/resources/mapper/RmWeatherHistoryMapper.xml
@@ -86,6 +86,25 @@
      </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 &gt;= #{startId}
      </if>
      <if test="endId != null">
        AND tb.id &lt;= #{endId}
      </if>
    </where>
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
    <!--@mbg.generated-->
    delete from rm_weather_history