Zimo преди 3 месеца
родител
ревизия
b29b1fa056
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      yudao-module-pms/yudao-module-pms-biz/src/main/resources/mapper/static/IotDeviceMapper.xml

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

@@ -649,7 +649,7 @@
             </foreach>
         </if>
         )a
-        left JOIN (select DISTINCT(device_id) from rq_iot_failure_report where `status`!='finished')b
+        left JOIN (select DISTINCT(device_id) from rq_iot_failure_report where `status`!='finished' and `status`!='oareject' and `status`!='reporting' and if_stop=1)b
         on a.id=b.device_id where b.device_id is not NULL
     </select>
     <select id="getRepairCount" resultType="java.lang.Long">
@@ -670,7 +670,7 @@
             </foreach>
         </if>
         )a
-        left JOIN (select DISTINCT(device_id) from rq_iot_maintain where `status`!='finished')b
+        left JOIN (select DISTINCT(device_id) from rq_iot_maintain where `status`!='finished' and `status`!='oareject' and if_stop=1)b
         on a.id=b.device_id where b.device_id is not NULL
     </select>
 </mapper>