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