|
@@ -36,7 +36,7 @@
|
|
<select id="selectTwinCalcHourSpecList" parameterType="TwinCalcHourSpec" resultMap="TwinCalcHourSpecResult">
|
|
<select id="selectTwinCalcHourSpecList" parameterType="TwinCalcHourSpec" resultMap="TwinCalcHourSpecResult">
|
|
<include refid="selectTwinCalcHourSpecVo"/>
|
|
<include refid="selectTwinCalcHourSpecVo"/>
|
|
<where>
|
|
<where>
|
|
- <if test="dataDate != null ">and DATEADD(hour, -HOUR, DATA_DATE) = #{dataDate}</if>
|
|
|
|
|
|
+ <if test="dataDate != null ">and FORMAT(DATEADD(hour, HOUR - 7, DATA_DATE), 'yyyy-MM-dd') = #{dataDate}</if>
|
|
<if test="hour != null ">and HOUR = #{hour}</if>
|
|
<if test="hour != null ">and HOUR = #{hour}</if>
|
|
<if test="deviceId != null ">and DEVICE_ID = #{deviceId}</if>
|
|
<if test="deviceId != null ">and DEVICE_ID = #{deviceId}</if>
|
|
<if test="length != null ">and LENGTH = #{length}</if>
|
|
<if test="length != null ">and LENGTH = #{length}</if>
|