大气质量监测模块修改
This commit is contained in:
@ -56,8 +56,9 @@ public class PmDataController {
|
||||
|
||||
@RequestMapping(value = "/ChangeRateRatio", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "2016-2020年PM2.5年平均浓度变化率占比", httpMethod = "GET")
|
||||
public AjaxResult changeRateRatio(@RequestParam(value = "region") String region) {
|
||||
List<PmYearConcentrationRatioVo> pmYearConcentrationRatioVos = pmDataService.changeRateRatio(region);
|
||||
public AjaxResult changeRateRatio(@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "region") String region) {
|
||||
List<PmYearConcentrationRatioVo> pmYearConcentrationRatioVos = pmDataService.changeRateRatio(year,region);
|
||||
return AjaxResult.success(pmYearConcentrationRatioVos);
|
||||
}
|
||||
|
||||
@ -68,4 +69,20 @@ public class PmDataController {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = pmDataService.monthAverage(year, region);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/ProvinceAverage", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各省PM2.5平均浓度", httpMethod = "GET")
|
||||
public AjaxResult provinceAverage(@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "country") String country) {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = pmDataService.provinceAverage(year, country);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/ProvinceChangeRate", method = {RequestMethod.GET})
|
||||
@ApiOperation(value = "各省PM2.5年之间变化", httpMethod = "GET")
|
||||
public AjaxResult provinceChangeRate(@RequestParam(value = "year") String year,
|
||||
@RequestParam(value = "country") String country) {
|
||||
PmKeyValueEnVo pmKeyValueEnVo = pmDataService.provinceChangeRate(year, country);
|
||||
return AjaxResult.success(pmKeyValueEnVo);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user