Browse Source

当日注气量统计

lipenghui 1 week ago
parent
commit
c392705a47

+ 2 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/resources/mapper/static/IotDeviceRunLogMapper.xml

@@ -57,6 +57,7 @@
         FROM rq_iot_device_run_log a
         FROM rq_iot_device_run_log a
         WHERE a.create_time BETWEEN #{createTime[0],typeHandler=org.apache.ibatis.type.LocalDateTimeTypeHandler} AND #{createTime[1],typeHandler=org.apache.ibatis.type.LocalDateTimeTypeHandler}
         WHERE a.create_time BETWEEN #{createTime[0],typeHandler=org.apache.ibatis.type.LocalDateTimeTypeHandler} AND #{createTime[1],typeHandler=org.apache.ibatis.type.LocalDateTimeTypeHandler}
           and a.point_name = #{pointName}
           and a.point_name = #{pointName}
+          and (a.device_code is null or a.device_code='')
         <if test="deptIds != null and deptIds.size &gt; 0">
         <if test="deptIds != null and deptIds.size &gt; 0">
             AND a.dept_id IN
             AND a.dept_id IN
             <foreach collection="deptIds" index="index" item="key" open="(" separator="," close=")">
             <foreach collection="deptIds" index="index" item="key" open="(" separator="," close=")">
@@ -75,6 +76,7 @@
         WHERE
         WHERE
             a.create_time >= DATE_SUB(NOW(), INTERVAL 1 YEAR)
             a.create_time >= DATE_SUB(NOW(), INTERVAL 1 YEAR)
           AND a.fill_content IS NOT NULL
           AND a.fill_content IS NOT NULL
+          and (a.device_code is null or a.device_code ='')
           and a.point_name = #{pointName}
           and a.point_name = #{pointName}
         <if test="deptIds != null and deptIds.size &gt; 0">
         <if test="deptIds != null and deptIds.size &gt; 0">
             AND a.dept_id IN
             AND a.dept_id IN