ENSO事件影响监测
This commit is contained in:
@ -0,0 +1,70 @@
|
||||
package com.ruoyi.web.controller.yada;
|
||||
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.system.domain_yada.entity.MonitorCountryCorrespondingEntity;
|
||||
import com.ruoyi.system.domain_yada.vo.ESNOImpactSubzoneVo;
|
||||
import com.ruoyi.system.domain_yada.vo.PmKeyValueEnVo;
|
||||
import com.ruoyi.system.domain_yada.vo.PmKeyValueVo;
|
||||
import com.ruoyi.system.service_yada.ESNOImpactService;
|
||||
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;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ENSO事件影响监测
|
||||
*
|
||||
* @author Mr.C
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/business-service/api/enso")
|
||||
@Api(tags = "ENSO事件影响监测")
|
||||
public class ESNOImpactController {
|
||||
|
||||
@Resource
|
||||
private ESNOImpactService esnoImpactService;
|
||||
|
||||
@RequestMapping(value = "/subzonePie", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各地理亚区植被异常分布", httpMethod = "GET")
|
||||
public AjaxResult subzonePie(@RequestParam(value = "type") String type,
|
||||
@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "region") String region) {
|
||||
ESNOImpactSubzoneVo esnoImpactSubzoneVo = esnoImpactService.subzonePie(type, year, region);
|
||||
return AjaxResult.success(esnoImpactSubzoneVo);
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value = "/subzoneVai", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各地理亚区VAI", httpMethod = "GET")
|
||||
public AjaxResult subzoneVai(@RequestParam(value = "type") String type,
|
||||
@RequestParam(value = "year") String year) {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = esnoImpactService.subzoneVai(type, year);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/countryVai", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各国AVI", httpMethod = "GET")
|
||||
public AjaxResult countryVai(@RequestParam(value = "type") String type,
|
||||
@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "region") String region) {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = esnoImpactService.countryVai(type, year, region);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/subzoneVaiLine", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各地理亚区时间VAI", httpMethod = "GET")
|
||||
public AjaxResult subzoneVaiLine(@RequestParam(value = "type") String type,
|
||||
@RequestParam(value = "region") String region,
|
||||
@RequestParam(value = "start") String start,
|
||||
@RequestParam(value = "end") String end) {
|
||||
PmKeyValueVo pmKeyValueVo = esnoImpactService.subzoneVaiLine(type, region,start, end);
|
||||
return AjaxResult.success(pmKeyValueVo);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user