|
@@ -283,10 +283,10 @@
|
|
|
union all
|
|
|
select 'keyProjects' name,count(*) num from centerdata_t_key_projects
|
|
|
union all
|
|
|
- select REPLACE(b.dict_value, '_', '') name,count(a.project_type) num from onest_data.centerdata_t_forest_importarea a
|
|
|
- left join onest_system.sys_dict_data b on a.project_type = b.dict_value where b.dict_type = 'area_type'
|
|
|
- and (b.dict_value = 'area_type0' or b.dict_value = 'area_type3' or b.dict_value = 'area_type2' or b.dict_value = 'area_type4' )
|
|
|
- GROUP BY a.project_type
|
|
|
+ select REPLACE(b.dict_value, '_', '') name,count(a.id) num from onest_system.sys_dict_data b
|
|
|
+ left join onest_data.centerdata_t_forest_importarea a on a.project_type = b.dict_value
|
|
|
+ where b.dict_type = 'area_type' and (b.dict_value = 'area_type0' or b.dict_value = 'area_type3' or b.dict_value = 'area_type2' or b.dict_value = 'area_type4' )
|
|
|
+ group by b.dict_value
|
|
|
union all
|
|
|
select 'KeyMonitoringAreas' name ,sum(a.num) num from
|
|
|
(select 'keyProjects' name,count(*) num from centerdata_t_key_projects
|