|
|
@ -3955,11 +3955,24 @@
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<delete id="deleteTArraytemperaturedataBycollectTime">
|
|
|
|
<delete id="deleteTArraytemperaturedataBycollectTime">
|
|
|
|
delete from T_ArrayTemperatureData where DATEADD(DAY, #{objId}, GETDATE()) > collectTime
|
|
|
|
delete
|
|
|
|
|
|
|
|
from T_ArrayTemperatureData
|
|
|
|
|
|
|
|
where DATEADD(DAY, #{objId}, GETDATE()) > collectTime
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getHighestPointTemperature" parameterType="TArraytemperaturedata" resultType="java.util.HashMap">
|
|
|
|
<select id="getHighestPointTemperature" parameterType="TArraytemperaturedata" resultType="java.util.HashMap">
|
|
|
|
SELECT monitorId, collectTime, MAX(SiteValue) AS tempreture
|
|
|
|
SELECT monitorId, collectTime, maxTemperature tempreture
|
|
|
|
|
|
|
|
FROM T_ArrayTemperatureData
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="monitorId != null and monitorId != ''">and monitorId = #{monitorId}</if>
|
|
|
|
|
|
|
|
<if test="params.beginCollectTime != null and params.beginCollectTime != '' and params.endCollectTime != null and params.endCollectTime != ''">
|
|
|
|
|
|
|
|
and collectTime between #{params.beginCollectTime} and #{params.endCollectTime}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
order by monitorId, collectTime
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SELECT monitorId, collectTime, MAX(SiteValue) AS tempreture
|
|
|
|
FROM (
|
|
|
|
FROM (
|
|
|
|
SELECT monitorId, collectTime, SiteValue
|
|
|
|
SELECT monitorId, collectTime, SiteValue
|
|
|
|
FROM T_ArrayTemperatureData
|
|
|
|
FROM T_ArrayTemperatureData
|
|
|
@ -4050,6 +4063,5 @@
|
|
|
|
and collectTime between #{params.beginCollectTime} and #{params.endCollectTime}</if>
|
|
|
|
and collectTime between #{params.beginCollectTime} and #{params.endCollectTime}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
) AS Data
|
|
|
|
) AS Data
|
|
|
|
GROUP BY monitorId, collectTime
|
|
|
|
GROUP BY monitorId, collectTime-->
|
|
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|