|
@@ -65,7 +65,7 @@
|
|
|
<select id="QueryTotalHistoryAvrgData" resultType="com.usky.backend.domain.vo.DataHistoryAvergerVO">
|
|
|
SELECT a.data_date as dataDate,'all_in_room' as deviceId,a.attribute_name as attributeName ,avg(a.attribute_data) as avrg
|
|
|
FROM (SELECT product_code,attribute_name,attribute_data,LEFT(data_time,#{leftLen}) AS data_date FROM ${tableName} WHERE data_time BETWEEN #{startTime} AND #{endTime} AND product_code = #{productCode}
|
|
|
- AND device_id != 'aliweather0001'
|
|
|
+ AND device_id != 'weather0001'
|
|
|
<if test="attributeNameList != null and attributeNameList.size() > 0">
|
|
|
AND attribute_name in
|
|
|
<foreach item="item" collection="attributeNameList" open="(" separator="," close=")">
|