综合监测
This commit is contained in:
		| @@ -0,0 +1,102 @@ | ||||
| package com.ruoyi.web.controller.yada; | ||||
|  | ||||
| import com.ruoyi.common.core.domain.AjaxResult; | ||||
| import com.ruoyi.system.domain_yada.entity.*; | ||||
| import com.ruoyi.system.domain_yada.vo.PmYearConcentrationRatioVo; | ||||
| import com.ruoyi.system.service_yada.MonitorService; | ||||
| import io.swagger.annotations.Api; | ||||
| import io.swagger.annotations.ApiOperation; | ||||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| import org.springframework.web.bind.annotation.RequestMethod; | ||||
| import org.springframework.web.bind.annotation.RequestParam; | ||||
| import org.springframework.web.bind.annotation.RestController; | ||||
|  | ||||
| import javax.annotation.Resource; | ||||
| import java.util.List; | ||||
|  | ||||
| /** | ||||
|  * 亚大综合检测 | ||||
|  * | ||||
|  * @author Mr.C | ||||
|  */ | ||||
|  | ||||
| @RestController | ||||
| @RequestMapping("/business-service/api/monitor") | ||||
| @Api(tags = "亚大综合检测") | ||||
| public class MonitorController { | ||||
|  | ||||
|     @Resource | ||||
|     private MonitorService monitorService; | ||||
|  | ||||
|  | ||||
|     @RequestMapping(value = "/corresponding", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "亚大区域地理亚区与国家对应关系", httpMethod = "GET") | ||||
|     public AjaxResult countryCorresponding(@RequestParam(value = "region") String region) { | ||||
|         List<MonitorCountryCorrespondingEntity> list = monitorService.countryCorresponding(region); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|  | ||||
|     @RequestMapping(value = "/eqiGrading", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "亚大区域地理亚区EQI分级", httpMethod = "GET") | ||||
|     public AjaxResult eqiGrading(@RequestParam(value = "year") String year, | ||||
|                                  @RequestParam(value = "region") String region) { | ||||
|         List<MonitorEQIGradingEntity> list = monitorService.eqiGrading(year, region); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|  | ||||
|     @RequestMapping(value = "/eqiAsia", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "地理亚区平均EQI分布", httpMethod = "GET") | ||||
|     public AjaxResult eqiAsia(@RequestParam(value = "year") String year) { | ||||
|         List<MonitorEQIAsiaEntity> list = monitorService.eqiAsia(year); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|  | ||||
|     @RequestMapping(value = "/eqiCountry", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "各国家平均EQI分布", httpMethod = "GET") | ||||
|     public AjaxResult eqiCountry(@RequestParam(value = "year") String year, | ||||
|                                  @RequestParam(value = "region") String region) { | ||||
|         List<MonitorEQICountryEntity> list = monitorService.eqiCountry(year, region); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|  | ||||
|     @RequestMapping(value = "/keqi", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "各地理亚区平均KEQI分布", httpMethod = "GET") | ||||
|     public AjaxResult keqi(@RequestParam(value = "region") String region) { | ||||
|         List<MonitorKEQIEntity> list = monitorService.keqi(region); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|  | ||||
|     @RequestMapping(value = "/keqiAsiaRate", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "各地理亚区平均KEQI变化率", httpMethod = "GET") | ||||
|     public AjaxResult keqiAsiaRate() { | ||||
|         List<MonitorKEQIAsiaRateEntity> list = monitorService.keqiAsiaRate(); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
|     @RequestMapping(value = "/keqiCountryRate", method = {RequestMethod.GET}) | ||||
|     @ApiOperation(value = "各国平均KEQI变化率", httpMethod = "GET") | ||||
|     public AjaxResult keqiCountryRate(@RequestParam(value = "region") String region) { | ||||
|         List<MonitorKEQICountryRateEntity> list = monitorService.keqiCountryRate(region); | ||||
|         if (list.isEmpty()) { | ||||
|             return AjaxResult.error("未查找到信息"); | ||||
|         } | ||||
|         return AjaxResult.success(list); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user