|
@@ -1,7 +1,6 @@
|
|
|
package com.sooka.sponest.data.digitalforest.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.ruoyi.common.core.domain.R;
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.datascope.annotation.DataScopeMutiDept;
|
|
@@ -23,10 +22,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @Auther: mjq
|
|
@@ -220,4 +217,13 @@ public class ForestBigDataServiceImpl extends BaseServiceImpl implements IForest
|
|
|
List<Map<String,Object>> list = forestBigDataMapper.selectForestGridCount(centerdataTForestGridLevel);
|
|
|
return deptLevelUtil.getDeptLevel(list);
|
|
|
}
|
|
|
+
|
|
|
+ @DataScopeMutiDept(deptAlias = "d")
|
|
|
+ @Override
|
|
|
+ public List<Map<String,Object>> selectTreeCount(CenterdataTForestTrees centerdataTForestTrees) {
|
|
|
+ setSookaDataBase(centerdataTForestTrees);
|
|
|
+ List<Map<String,Object>> list = forestBigDataMapper.selectTreeCount(centerdataTForestTrees);
|
|
|
+ return deptLevelUtil.getDeptLevel(list);
|
|
|
+ }
|
|
|
+
|
|
|
}
|