瀏覽代碼

增加数据权限

hanfucheng 1 月之前
父節點
當前提交
fa8eb7e3ae
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/resources/mapper/digitalresource/DigitalResourcesBigDataMapper.xml

+ 3 - 3
src/main/resources/mapper/digitalresource/DigitalResourcesBigDataMapper.xml

@@ -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>