| 
														
															@@ -24,11 +24,11 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         typeFacilityNum 
														 | 
														
														 | 
														
															         typeFacilityNum 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         FROM base_facility_type d 
														 | 
														
														 | 
														
															         FROM base_facility_type d 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
														
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        <where> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            <if test="tenantId != null and tenantId != ''"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                and d.tenant_id = #{tenantId} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            </if> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        </where> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--        <where>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            <if test="tenantId != null and tenantId != ''">--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--                and d.tenant_id = #{tenantId}--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            </if>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--        </where>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         GROUP BY d.id 
														 | 
														
														 | 
														
															         GROUP BY d.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     </select> 
														 | 
														
														 | 
														
															     </select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <select id="typeNormalNumList" resultType="com.usky.iot.service.vo.BaseGgpFacilityTypeNumVO"> 
														 | 
														
														 | 
														
															     <select id="typeNormalNumList" resultType="com.usky.iot.service.vo.BaseGgpFacilityTypeNumVO"> 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -37,9 +37,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         FROM base_facility_type d 
														 | 
														
														 | 
														
															         FROM base_facility_type d 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
														
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <where> 
														 | 
														
														 | 
														
															         <where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            <if test="tenantId != null and tenantId != ''"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                and d.tenant_id = #{tenantId} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            </if> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            <if test="tenantId != null and tenantId != ''">--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--                and d.tenant_id = #{tenantId}--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            </if>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 and e.status = 0 
														 | 
														
														 | 
														
															                 and e.status = 0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </where> 
														 | 
														
														 | 
														
															         </where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         GROUP BY d.id 
														 | 
														
														 | 
														
															         GROUP BY d.id 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -50,9 +50,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         FROM base_facility_type d 
														 | 
														
														 | 
														
															         FROM base_facility_type d 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
														
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <where> 
														 | 
														
														 | 
														
															         <where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            <if test="tenantId != null and tenantId != ''"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                and d.tenant_id = #{tenantId} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            </if> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            <if test="tenantId != null and tenantId != ''">--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--                and d.tenant_id = #{tenantId}--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            </if>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             and e.status = 1 
														 | 
														
														 | 
														
															             and e.status = 1 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </where> 
														 | 
														
														 | 
														
															         </where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         GROUP BY d.id 
														 | 
														
														 | 
														
															         GROUP BY d.id 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -63,9 +63,9 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         FROM base_facility_type d 
														 | 
														
														 | 
														
															         FROM base_facility_type d 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
														
														 | 
														
															         LEFT JOIN base_ggp_facility e ON e.facility_type = d.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         <where> 
														 | 
														
														 | 
														
															         <where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            <if test="tenantId != null and tenantId != ''"> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-                and d.tenant_id = #{tenantId} 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            </if> 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            <if test="tenantId != null and tenantId != ''">--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--                and d.tenant_id = #{tenantId}--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+<!--            </if>--> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             and e.status = 2 
														 | 
														
														 | 
														
															             and e.status = 2 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         </where> 
														 | 
														
														 | 
														
															         </where> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         GROUP BY d.id 
														 | 
														
														 | 
														
															         GROUP BY d.id 
														 |