瀏覽代碼

no message

wzh 5 年之前
父節點
當前提交
91d5487d04
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/application/controllers/Alarm.php

+ 1 - 1
api/application/controllers/Alarm.php

@@ -91,7 +91,7 @@ class Alarm extends Base_Controller {
 
 		if (empty($download)) {
 			if (empty($type)) {
-				$where[] = 'L.controllerstatus = 5';
+				$where[] = '(L.controllerstatus = 5 or L.netstatus = 0)';
 
 				$join = array();
 				$join[] = ['table'=>'(select lampid,max(updatetime) as maxTime from warning_info_log group by lampid) as WI','cond'=>'WI.lampid = AI.lampid AND WI.maxTime = AI.updatetime','type'=>'inner'];