|
@@ -2,6 +2,7 @@ package com.sooka.sponest.data.digitalforest.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
+import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.datascope.annotation.DataScopeMutiDept;
|
|
|
import com.sooka.sponest.data.app.domain.VisuForestCloudMapVO;
|
|
@@ -207,7 +208,11 @@ public class ForestBigDataServiceImpl extends BaseServiceImpl implements IForest
|
|
|
public List<Map<String,Object>> selectResourcesAreaCount(CenterdataTForestResources centerdataTForestResources) throws IOException {
|
|
|
setSookaDataBase(centerdataTForestResources);
|
|
|
List<Map<String,Object>> list = forestBigDataMapper.selectResourcesAreaCount(centerdataTForestResources);
|
|
|
- return deptLevelUtil.getDeptLevel(list);
|
|
|
+ String deptId = "";
|
|
|
+ if (!StringUtils.isNull(centerdataTForestResources.getDeptId())){
|
|
|
+ deptId = String.valueOf(centerdataTForestResources.getDeptId());
|
|
|
+ }
|
|
|
+ return deptLevelUtil.getDeptLevel(list,deptId);
|
|
|
}
|
|
|
|
|
|
@DataScopeMutiDept(deptAlias = "d")
|
|
@@ -215,7 +220,11 @@ public class ForestBigDataServiceImpl extends BaseServiceImpl implements IForest
|
|
|
public List<Map<String,Object>> selectForestGridCount(CenterdataTForestGridLevelVo centerdataTForestGridLevel) throws IOException {
|
|
|
setSookaDataBase(centerdataTForestGridLevel);
|
|
|
List<Map<String,Object>> list = forestBigDataMapper.selectForestGridCount(centerdataTForestGridLevel);
|
|
|
- return deptLevelUtil.getDeptLevel(list);
|
|
|
+ String deptId = "";
|
|
|
+ if (!StringUtils.isNull(centerdataTForestGridLevel.getDeptId())){
|
|
|
+ deptId = String.valueOf(centerdataTForestGridLevel.getDeptId());
|
|
|
+ }
|
|
|
+ return deptLevelUtil.getDeptLevel(list,deptId);
|
|
|
}
|
|
|
|
|
|
@DataScopeMutiDept(deptAlias = "d")
|
|
@@ -223,7 +232,11 @@ public class ForestBigDataServiceImpl extends BaseServiceImpl implements IForest
|
|
|
public List<Map<String,Object>> selectTreeCount(CenterdataTForestTrees centerdataTForestTrees) {
|
|
|
setSookaDataBase(centerdataTForestTrees);
|
|
|
List<Map<String,Object>> list = forestBigDataMapper.selectTreeCount(centerdataTForestTrees);
|
|
|
- return deptLevelUtil.getDeptLevel(list);
|
|
|
+ String deptId = "";
|
|
|
+ if (!StringUtils.isNull(centerdataTForestTrees.getDeptId())){
|
|
|
+ deptId = String.valueOf(centerdataTForestTrees.getDeptId());
|
|
|
+ }
|
|
|
+ return deptLevelUtil.getDeptLevel(list,deptId);
|
|
|
}
|
|
|
|
|
|
}
|