|
@@ -45,13 +45,6 @@
|
|
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}
|
|
union all
|
|
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
|
|
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
|
|
left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
|
|
where 1=1 ${params.dataScope}
|
|
where 1=1 ${params.dataScope}
|