浏览代码

地理设施查看修复

hanzhengyi 1 年之前
父节点
当前提交
9c0a44e1c4
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      service-iot/service-iot-biz/src/main/resources/mapper/iot/BaseFacilityTypeMapper.xml

+ 4 - 4
service-iot/service-iot-biz/src/main/resources/mapper/iot/BaseFacilityTypeMapper.xml

@@ -23,7 +23,7 @@
         SELECT d.id,d.type_name as typeName,d.type_img as typeImg,IF(facility_type IS NULL,0,COUNT(*)) AS
         SELECT d.id,d.type_name as typeName,d.type_img as typeImg,IF(facility_type IS NULL,0,COUNT(*)) AS
         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.type_code
         <where>
         <where>
             <if test="tenantId != null and tenantId != ''">
             <if test="tenantId != null and tenantId != ''">
                 and e.tenant_id = #{tenantId}
                 and e.tenant_id = #{tenantId}
@@ -35,7 +35,7 @@
         SELECT d.id,IF(facility_type IS NULL,0,COUNT(*)) AS
         SELECT d.id,IF(facility_type IS NULL,0,COUNT(*)) AS
         normalFacilityNum
         normalFacilityNum
         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.type_code
         <where>
         <where>
             <if test="tenantId != null and tenantId != ''">
             <if test="tenantId != null and tenantId != ''">
                 and e.tenant_id = #{tenantId}
                 and e.tenant_id = #{tenantId}
@@ -48,7 +48,7 @@
         SELECT d.id,IF(facility_type IS NULL,0,COUNT(*)) AS
         SELECT d.id,IF(facility_type IS NULL,0,COUNT(*)) AS
         upkeepFacilityNum
         upkeepFacilityNum
         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.type_code
         <where>
         <where>
             <if test="tenantId != null and tenantId != ''">
             <if test="tenantId != null and tenantId != ''">
                 and e.tenant_id = #{tenantId}
                 and e.tenant_id = #{tenantId}
@@ -61,7 +61,7 @@
         SELECT d.id,IF(facility_type IS NULL,0,COUNT(*)) AS
         SELECT d.id,IF(facility_type IS NULL,0,COUNT(*)) AS
         closeFacilityNum
         closeFacilityNum
         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.type_code
         <where>
         <where>
             <if test="tenantId != null and tenantId != ''">
             <if test="tenantId != null and tenantId != ''">
                 and e.tenant_id = #{tenantId}
                 and e.tenant_id = #{tenantId}