瀏覽代碼

删除重复查询

朴弘宇 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}