| 
					
				 | 
			
			
				@@ -81,6 +81,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="sceneName != null and sceneName != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             and t1.scene_name  like concat('%',#{sceneName},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="tenantId != null and tenantId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            and t1.tenant_id = #{tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         order by t1.scene_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!--查询实时报警数量--> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -101,6 +104,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="sceneName != null and sceneName != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             and t1.scene_name  like concat('%',#{sceneName},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="tenantId != null and tenantId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            and t1.tenant_id = #{tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         group by t1.scene_name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         order by alalmCount desc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -122,6 +128,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{item} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="tenantId != null and tenantId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            and t1.tenant_id = #{tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         order by t1.scene_name,t5.seq 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!--查询地图参数数据--> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -159,6 +168,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <if test="onlineDataDto.sceneName != null and onlineDataDto.sceneName != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             and t1.scene_name  like concat('%',#{onlineDataDto.sceneName},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="onlineDataDto.tenantId != null and onlineDataDto.tenantId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            and t1.tenant_id = #{onlineDataDto.tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         order by  t1.date_create 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <!--查询设备报警分析--> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -226,6 +238,9 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 #{item} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <if test="tenantId != null and tenantId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            and t1.tenant_id = #{tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         order by t1.scene_name,t5.seq 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |