From 2bd766940afdcb30d63840cea251d3979b332254 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Wed, 05 Jan 2022 16:34:02 +0800 Subject: [PATCH] 2+26城市排名 --- screen-api/src/main/java/com/moral/api/controller/AqiController.java | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/screen-api/src/main/java/com/moral/api/controller/AqiController.java b/screen-api/src/main/java/com/moral/api/controller/AqiController.java index b504c3b..a9c210c 100644 --- a/screen-api/src/main/java/com/moral/api/controller/AqiController.java +++ b/screen-api/src/main/java/com/moral/api/controller/AqiController.java @@ -3,6 +3,7 @@ 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; @@ -176,7 +177,7 @@ @ApiImplicitParam(name = "time", value = "������������������������day,month,year���������������", required = true, paramType = "query", dataType = "String"), @ApiImplicitParam(name = "start", value = "������������������������������custom���������������������������������������������2021-11-02", required = true, paramType = "query", dataType = "String"), @ApiImplicitParam(name = "end", value = "������������������������������custom���������������������������������������������2021-11-03", required = true, paramType = "query", dataType = "String"), - @ApiImplicitParam(name = "cityType", value = "������������������������������province������������������city", required = true, paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "cityType", value = "������������������������������province������������������city���2+28���������������28", required = true, paramType = "query", dataType = "String"), }) public ResultMessage rankingDetails(HttpServletRequest request) { Map<String, Object> params = WebUtils.getParametersStartingWith(request, null); @@ -213,7 +214,26 @@ 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); } -- Gitblit v1.8.0