| | |
| | | */ |
| | | @GetMapping("query24HoursAQI") |
| | | public ResultMessage query24HoursAQIByRegionCode(Integer regionCode){ |
| | | Map<String, Object> stringObjectMap = cityAqiService.query24HoursAqiByRegionCode(regionCode); |
| | | return ResultMessage.ok(stringObjectMap); |
| | | Map<String, Object> datas = cityAqiService.query24HoursAqiByRegionCode(regionCode); |
| | | return ResultMessage.ok(datas); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 查询当天的累计aqi以及主要污染物 |
| | | * @Param: [RegionCode] |
| | | * @return: com.moral.constant.ResultMessage |
| | | * @Author: 陈凯裕 |
| | | * @Date: 2021/11/2 |
| | | */ |
| | | @GetMapping("queryTodayAqiAndPollutant") |
| | | public ResultMessage queryTodayAqiAndPollutant(Integer regionCode){ |
| | | Map<String, Object> datas = cityAqiService.queryTodayAqiAndPollutant(regionCode); |
| | | return ResultMessage.ok(datas); |
| | | } |
| | | |
| | | @GetMapping("provincialRanking") |