소스 검색

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

james 1 년 전
부모
커밋
0e3982c40c
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      service-backend/service-backend-biz/src/main/resources/mapper/backend/DataRealTimeMapper.xml

+ 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>