|
@@ -44,36 +44,6 @@
|
|
limit 8
|
|
limit 8
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getTotal" parameterMap="pm_VisuForestCloudMapVO" resultType="map">
|
|
|
|
- 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
|
|
|
|
- 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_landing 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_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}
|
|
|
|
- union all
|
|
|
|
- select '重点防火地块' name,count(*) value from centerdata_t_forest_keyfireproofplots 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_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='3' ${params.dataScope}
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
<select id="selectBigDataImportareaDeptCount" parameterType="CenterdataTForestImportarea"
|
|
<select id="selectBigDataImportareaDeptCount" parameterType="CenterdataTForestImportarea"
|
|
resultMap="VisuForestCloudEventTypeBOResult">
|
|
resultMap="VisuForestCloudEventTypeBOResult">
|
|
select a.dept_name name,count(a.id) num from centerdata_t_forest_importarea a
|
|
select a.dept_name name,count(a.id) num from centerdata_t_forest_importarea a
|
|
@@ -300,6 +270,34 @@
|
|
where a.dict_type = 'firehydrant'
|
|
where a.dict_type = 'firehydrant'
|
|
GROUP BY a.dict_value
|
|
GROUP BY a.dict_value
|
|
union all
|
|
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
|
|
|
|
+ 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_landing 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_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}
|
|
|
|
+ union all
|
|
|
|
+ select '重点防火地块' name,count(*) value from centerdata_t_forest_keyfireproofplots 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_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='3' ${params.dataScope}
|
|
|
|
+ union all
|
|
select '泡沫液' name,count(*) value from centerdata_t_firecontrol_foam_liquid a
|
|
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
|
|
left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
|
|
where 1=1 ${params.dataScope}
|
|
where 1=1 ${params.dataScope}
|