| | |
| | | import com.moral.api.pojo.dto.cityAQI.CityPollutionLevel; |
| | | import com.moral.api.pojo.dto.cityAQI.MonthlyPollutionLevel; |
| | | import com.moral.api.pojo.form.aqi.AreaPollutionLevelForm; |
| | | import com.moral.api.pojo.form.aqi.SpecialCitiesPollutionLevelForm; |
| | | import com.moral.api.pojo.vo.cityAQI.BarChartOfPollutionLevelVO; |
| | | import com.moral.api.pojo.vo.cityAQI.BarChartTableOfPollutionLevelVO; |
| | | import com.moral.api.pojo.vo.cityAQI.PieChartOfPollutionLevelVO; |
| | |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | //查询业务数据 |
| | | List<CityPollutionLevel> datas = cityAqiDailyService.queryAreaPollutionLevel(form); |
| | | //返回数据 |
| | | return ResultMessage.ok(datas); |
| | | } |
| | | |
| | | /** |
| | | * @Description: 查询26+2城市优良天气数据 |
| | | * @Param: [form] |
| | | * @return: com.moral.constant.ResultMessage |
| | | * @Author: 陈凯裕 |
| | | * @Date: 2021/12/31 |
| | | */ |
| | | @GetMapping("qeury28CitiesPollutionLevel") |
| | | public ResultMessage qeury28CitiesPollutionLevel(SpecialCitiesPollutionLevelForm form){ |
| | | //判断是否缺少参数 |
| | | if (!form.valid()) |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | //查询业务数据 |
| | | List<CityPollutionLevel> datas = cityAqiDailyService.querySpecialCitiesPollutionLevel(form); |
| | | //返回数据 |
| | | return ResultMessage.ok(datas); |
| | | } |
| | | |