|
@@ -234,7 +234,7 @@
|
|
|
from centerdata_t_resources_geologic_hazard a
|
|
|
left join ${database_system}.sys_dict_data dict on dict.dict_value = a.disaster_type
|
|
|
left join ${database_system}.sys_dept d on a.dept_id=d.dept_id
|
|
|
- where dict.dict_type = 'centerdata_disaster_type'
|
|
|
+ where dict.dict_type = 'centerdata_disaster_type' ${params.dataScope}
|
|
|
group by a.disaster_type
|
|
|
</select>
|
|
|
<select id="getGeologicHazard" parameterType="CenterdataTResourcesGeologicHazard"
|
|
@@ -242,7 +242,7 @@
|
|
|
select dict.dict_label name ,count(a.id) value from ${database_system}.sys_dict_data dict
|
|
|
left join centerdata_t_resources_geologic_hazard a on dict.dict_value = a.disaster_type
|
|
|
left join ${database_system}.sys_dept d on a.dept_id=d.dept_id
|
|
|
- where dict.dict_type = 'centerdata_disaster_type'
|
|
|
+ where dict.dict_type = 'centerdata_disaster_type' ${params.dataScope}
|
|
|
group by dict.dict_label
|
|
|
</select>
|
|
|
|
|
@@ -252,7 +252,7 @@
|
|
|
from centerdata_t_resources_illegal_construction a
|
|
|
left join ${database_system}.sys_dict_data dict on dict.dict_value = a.construction_type
|
|
|
left join ${database_system}.sys_dept d on a.dept_id=d.dept_id
|
|
|
- where dict.dict_type = 'centerdata_construction_type'
|
|
|
+ where dict.dict_type = 'centerdata_construction_type' ${params.dataScope}
|
|
|
group by a.construction_type
|
|
|
</select>
|
|
|
|