Ver código fonte

'优化设备日平均值、月平均值、年平均值以及其导出两个接口,去除属性值为0的过滤条件,通过网关采集程序去控制过滤掉离线设备的上报数据'

james 1 ano atrás
pai
commit
0e3982c40c

+ 2 - 4
service-backend/service-backend-biz/src/main/resources/mapper/backend/DataRealTimeMapper.xml

@@ -110,8 +110,7 @@
             <foreach item="item" collection="attributeNameList" open="(" separator="," close=")">
                 #{item}
             </foreach>
-        </if>
-        and attribute_data != 0) a
+        </if>) a
         GROUP BY a.data_date,a.attribute_name;
     </select>
     <select id="QueryTotalHistoryAvrgData" resultType="com.usky.backend.domain.DataHistoryAvergerVO">
@@ -123,8 +122,7 @@
             <foreach item="item" collection="attributeNameList" open="(" separator="," close=")">
                 #{item}
             </foreach>
-        </if>
-        and attribute_data != 0) a
+        </if>) a
         GROUP BY a.data_date,a.attribute_name;
     </select>