亚大综合监测、森林监测添加柬埔寨各省数据
This commit is contained in:
@ -2,9 +2,13 @@ package com.ruoyi.web.controller.yada;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.*;
|
||||
import com.ruoyi.system.domain_yada.vo.ForestProvinceChangeVo;
|
||||
import com.ruoyi.system.domain_yada.vo.ForestProvinceCoverageVo;
|
||||
import com.ruoyi.system.domain_yada.vo.PmKeyValueEnVo;
|
||||
import com.ruoyi.system.service_yada.IForestDetectionService;
|
||||
import com.ruoyi.system.service_yada.impl.ForestDetectionServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
@ -49,4 +53,18 @@ public class ForestDetectionControer {
|
||||
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/forestProvinceCoverage", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各省森林覆盖率", httpMethod = "GET")
|
||||
public AjaxResult forestProvinceCoverage(@RequestParam(value = "country") String country) {
|
||||
ForestProvinceCoverageVo forestProvinceCoverageVo = service.forestProvinceCoverage(country);
|
||||
return AjaxResult.success(forestProvinceCoverageVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/forestProvinceChange", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各省森林变化率", httpMethod = "GET")
|
||||
public AjaxResult forestProvinceChange(@RequestParam(value = "country") String country) {
|
||||
ForestProvinceChangeVo forestProvinceChangeVo = service.forestProvinceChange(country);
|
||||
return AjaxResult.success(forestProvinceChangeVo);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,6 +41,16 @@ public class MonitorController {
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/provinceCorresponding", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "国家与省份对应关系", httpMethod = "GET")
|
||||
public AjaxResult provinceCorresponding(@RequestParam(value = "country") String country) {
|
||||
List<ProvinceCorrespondingEntity> list = monitorService.provinceCorresponding(country);
|
||||
if (list.isEmpty()) {
|
||||
return AjaxResult.error("未查找到信息");
|
||||
}
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/eqiGrading", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "亚大区域地理亚区EQI分级", httpMethod = "GET")
|
||||
public AjaxResult eqiGrading(@RequestParam(value = "year") String year,
|
||||
@ -103,5 +113,54 @@ public class MonitorController {
|
||||
return AjaxResult.success(pmKeyValueVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/eqiCountryGrading", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各国EQI分级", httpMethod = "GET")
|
||||
public AjaxResult eqiCountryGrading(@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "country") String country,
|
||||
@RequestParam(value = "type") String type) {
|
||||
MonitorEQICountryGradingEntity monitorEQICountryGradingEntity = monitorService.eqiCountryGrading(year, country, type);
|
||||
return AjaxResult.success(monitorEQICountryGradingEntity);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/keqiCountry", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各国平均KEQI分布", httpMethod = "GET")
|
||||
public AjaxResult keqiCountry(@RequestParam(value = "country") String country,
|
||||
@RequestParam(value = "type") String type) {
|
||||
MonitorKEQICountryEntity monitorKEQICountryEntity = monitorService.keqiCountry(type, country);
|
||||
return AjaxResult.success(monitorKEQICountryEntity);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/keqiCambodia", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "柬埔寨平均KEQI分布", httpMethod = "GET")
|
||||
public AjaxResult keqiCambodia(@RequestParam(value = "type") String type,
|
||||
@RequestParam(value = "province") String province) {
|
||||
MonitorKEQICambodiaEntity monitorKEQICambodiaEntity = monitorService.keqiCambodia(type, province);
|
||||
return AjaxResult.success(monitorKEQICambodiaEntity);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/eqiCambodiaGrading", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各国EQI分级", httpMethod = "GET")
|
||||
public AjaxResult eqiCambodiaGrading(@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "province") String province,
|
||||
@RequestParam(value = "type") String type) {
|
||||
MonitorEQICambodiaGradingEntity monitorEQICambodiaGradingEntity = monitorService.eqiCambodiaGrading(year, type, province);
|
||||
return AjaxResult.success(monitorEQICambodiaGradingEntity);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/keqiProvinceRate", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各省平均KEQI变化率", httpMethod = "GET")
|
||||
public AjaxResult keqiProvinceRate(@RequestParam(value = "country") String country,
|
||||
@RequestParam(value = "type") String type) {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = monitorService.keqiProvinceRate(country, type);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/eqiProvince", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各省平均EQI分布", httpMethod = "GET")
|
||||
public AjaxResult eqiProvince(@RequestParam(value = "country") String country,
|
||||
@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "type") String type) {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = monitorService.eqiProvince(country, year, type);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user