소스 검색

性能优化

lyq 1 년 전
부모
커밋
ec4d41aa9e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/resources/mapper/commandcenter/CommandCentreMapper.xml

+ 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>