Kaynağa Gözat

性能优化

lyq 1 yıl önce
ebeveyn
işleme
ec4d41aa9e

+ 1 - 1
src/main/resources/mapper/commandcenter/CommandCentreMapper.xml

@@ -157,7 +157,7 @@
         FROM centerdata_t_key_projects a
         LEFT JOIN ${database_system}.sys_dept d ON d.dept_id = a.dept_id
         LEFT JOIN ${database_system}.sys_dept b ON b.dept_id = a.park
-        LEFT JOIN centerdata_t_equipment_camera c ON c.business_id = a.id
+        LEFT JOIN centerdata_t_equipment_camera c ON c.business_id = a.id AND `type` = 'key_projects'
         <where>
             <choose>
                 <when test="deptId != null and deptId != ''">and FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )</when>