kaiyu
2021-11-09 a54daffd42f8d62eee0ac01b79d126d100f08e1d
screen-api/src/main/java/com/moral/api/controller/AqiController.java
@@ -1,5 +1,7 @@
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;
@@ -29,6 +31,8 @@
    @Autowired
    private CityAqiService cityAqiService;
    @Autowired
    private CityAqiDailyService cityAqiDailyService;
    @GetMapping("compareO3")
    @ApiOperation(value = "预测和实测臭氧对比", notes = "预测和实测臭氧对比")
@@ -83,6 +87,12 @@
        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 = {