| | |
| | | package com.moral.api.controller; |
| | | |
| | | import com.moral.api.pojo.dto.dataDisplay.PollutionLevelProportionDTO; |
| | | import com.moral.api.service.CityAqiDailyService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | |
| | | @Autowired |
| | | private CityAqiService cityAqiService; |
| | | @Autowired |
| | | private CityAqiDailyService cityAqiDailyService; |
| | | |
| | | @GetMapping("compareO3") |
| | | @ApiOperation(value = "预测和实测臭氧对比", notes = "预测和实测臭氧对比") |
| | |
| | | return ResultMessage.ok(datas); |
| | | } |
| | | |
| | | @GetMapping("queryPollutionLevelsForThisYear") |
| | | public ResultMessage queryPollutionLevelsForThisYear(Integer regionCode){ |
| | | PollutionLevelProportionDTO dto = cityAqiDailyService.queryPollutionLevelsForThisYear(regionCode); |
| | | return ResultMessage.ok(dto); |
| | | } |
| | | |
| | | @GetMapping("provincialRanking") |
| | | @ApiOperation(value = "省内排名", notes = "省内排名") |
| | | @ApiImplicitParams(value = { |