Browse Source

删除多余查询,更改名称

朴弘宇 1 year ago
parent
commit
5038c4e8b7
1 changed files with 3 additions and 15 deletions
  1. 3 15
      src/main/resources/mapper/digitalforest/ForestBigDataMapper.xml

+ 3 - 15
src/main/resources/mapper/digitalforest/ForestBigDataMapper.xml

@@ -270,11 +270,7 @@
         where a.dict_type = 'firehydrant'
         GROUP BY a.dict_value
         union all
-        select '林场' name,count(*) value from centerdata_t_forest_grid_level a
-            left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
-        where 1=1 AND a.forest_grid_level='1' ${params.dataScope}
-        union all
-        select '植树计划' name,count(*) value from centerdata_t_forest_afforestation a
+        select '植树造林计划' name,count(*) value from centerdata_t_forest_afforestation a
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
         union all
@@ -282,10 +278,6 @@
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
         union all
-        select '防火队' name,count(*) value from centerdata_t_forest_fireteam a
-            left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
-        where 1=1 ${params.dataScope}
-        union all
         select '珍稀古树' name,count(*) value from centerdata_t_forest_trees a
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
@@ -298,19 +290,15 @@
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 AND a.forest_grid_level='3' ${params.dataScope}
         union all
-        select '泡沫液' name,count(*) value from centerdata_t_firecontrol_foam_liquid a
-            left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
-        where 1=1 ${params.dataScope}
-        union all
         select '水源信息' name,count(*) value from centerdata_t_forest_channel a
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
         union all
-        select '植树造林-植树区域' name,count(*) value from centerdata_t_forest_afforestationarea a
+        select '植树造林区域' name,count(*) value from centerdata_t_forest_afforestationarea a
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
         union all
-        select '野生动物-动物监测' name,count(*) value from centerdata_t_forest_animal a
+        select '野生动物监测' name,count(*) value from centerdata_t_forest_animal a
             left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
         where 1=1 ${params.dataScope}
         union all