소스 검색

删除重复查询

朴弘宇 1 년 전
부모
커밋
e4bfa6da48
1개의 변경된 파일0개의 추가작업 그리고 7개의 파일을 삭제
  1. 0 7
      src/main/resources/mapper/digitalemergency/EmergencyBigDataMapper.xml

+ 0 - 7
src/main/resources/mapper/digitalemergency/EmergencyBigDataMapper.xml

@@ -45,13 +45,6 @@
         left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
         union all
-        SELECT a.dict_label name,count(b.firehydrant_type) value FROM ${database_system}.sys_dict_data a left join
-        (SELECT a.firehydrant_type FROM centerdata_t_forest_firehydrant a
-        left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
-        where 1=1 ${params.dataScope}) b on a.dict_value = b.firehydrant_type
-        where a.dict_type = 'firehydrant'
-        GROUP BY a.dict_value
-        union all
         select '危化企业' name,count(*) value from centerdata_t_emergency_idlh_enterprises a
         left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}