|
@@ -1,6 +1,7 @@
|
|
|
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;
|
|
@@ -17,9 +18,11 @@ import com.sooka.sponest.data.generalbusiness.domain.CenterdataTForestImportarea
|
|
|
import com.sooka.sponest.data.generalbusiness.domain.CenterdataTForestWeatherinformation;
|
|
|
import com.sooka.sponest.data.generalbusiness.domain.bo.CenterdataTForestWeatherinformationBigDataBO;
|
|
|
import com.sooka.sponest.data.generalbusiness.domain.vo.CenterdataTForestWeatherinformationBigDataVO;
|
|
|
+import com.sooka.sponest.data.utils.DeptLevelUtil;
|
|
|
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;
|
|
@@ -35,6 +38,9 @@ import java.util.Map;
|
|
|
public class ForestBigDataServiceImpl extends BaseServiceImpl implements IForestBigDataService {
|
|
|
@Autowired
|
|
|
private ForestBigDataMapper forestBigDataMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private DeptLevelUtil deptLevelUtil;
|
|
|
@DataScopeMutiDept(deptAlias = "d")
|
|
|
@Override
|
|
|
public List<VisuForestCloudEventTypeBO> selectBigDataFarmDeptCount(CenterdataTForestFarm centerdataTForestFarm) {
|
|
@@ -198,4 +204,20 @@ public class ForestBigDataServiceImpl extends BaseServiceImpl implements IForest
|
|
|
public List<Map<String, Object>> focusOnFire() {
|
|
|
return forestBigDataMapper.focusOnFire();
|
|
|
}
|
|
|
+
|
|
|
+ @DataScopeMutiDept(deptAlias = "d")
|
|
|
+ @Override
|
|
|
+ public R selectResourcesAreaCount(CenterdataTForestResources centerdataTForestResources) throws IOException {
|
|
|
+ setSookaDataBase(centerdataTForestResources);
|
|
|
+ List<Map<String,Object>> list = forestBigDataMapper.selectResourcesAreaCount(centerdataTForestResources);
|
|
|
+ return deptLevelUtil.getDeptLevel(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ @DataScopeMutiDept(deptAlias = "d")
|
|
|
+ @Override
|
|
|
+ public R selectForestGridCount(CenterdataTForestGridLevelVo centerdataTForestGridLevel) throws IOException {
|
|
|
+ setSookaDataBase(centerdataTForestGridLevel);
|
|
|
+ List<Map<String,Object>> list = forestBigDataMapper.selectForestGridCount(centerdataTForestGridLevel);
|
|
|
+ return deptLevelUtil.getDeptLevel(list);
|
|
|
+ }
|
|
|
}
|