| | |
| | | import com.moral.service.WeatherService;
|
| | | import com.moral.util.AQICalculation;
|
| | | import com.moral.util.TempAllocationUtils;
|
| | |
|
| | | import io.swagger.annotations.Api;
|
| | | import io.swagger.annotations.ApiImplicitParam;
|
| | | import io.swagger.annotations.ApiImplicitParams;
|
| | | import io.swagger.annotations.ApiOperation;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | |
| | | @ApiImplicitParam(name = "time", defaultValue = "2019", value = "查询的时间", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "sensorKey", defaultValue = "e27", value = "查询的监测因子的key", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "regionCode", defaultValue = "130000", value = "区域码", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "monitorPointId", value = "监测点id", required = false, paramType = "query", dataType = "int"),
|
| | | @ApiImplicitParam(name = "mac", value = "设备mac", required = false, paramType = "query", dataType = "String")})
|
| | | @ApiImplicitParam(name = "monitorPointId", value = "监测点id(格式:376)", required = false, paramType = "query", dataType = "int"),
|
| | | @ApiImplicitParam(name = "mac", value = "设备mac(格式:vocscxwnm00001)", required = false, paramType = "query", dataType = "String")})
|
| | | public ResultBean<List<Map<String, Object>>> getemissionsData(HttpServletRequest request) throws Exception {
|
| | | Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null);
|
| | | List<Map<String, Object>> result = historyDailyService.getEmissionsData(parameters);
|
| | |
| | | @GetMapping("/map-traceability")
|
| | | @ApiOperation(value = "获取污染溯源", notes = "获取污染溯源")
|
| | | @ApiImplicitParams(value = {
|
| | | @ApiImplicitParam(name = "monitorPointId", value = "监测点id", required = true, paramType = "query", dataType = "int"),
|
| | | @ApiImplicitParam(name = "mac", value = "设备mac地址", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "sensorKey", value = "查询的监测因子的key", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "time", value = "查询时间", required = true, paramType = "query", dataType = "String")})
|
| | | @ApiImplicitParam(name = "monitorPointId", value = "监测点id(格式:319)", required = true, paramType = "query", dataType = "int"),
|
| | | @ApiImplicitParam(name = "mac", value = "设备mac地址(格式:p5dnd7a0391993)", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "sensorKey", value = "查询的监测因子的key(格式:e1)", required = true, paramType = "query", dataType = "String"),
|
| | | @ApiImplicitParam(name = "time", value = "查询时间(格式:2019-09-08)", required = true, paramType = "query", dataType = "String")})
|
| | | public ModelAndView traceability(ModelAndView model, HttpServletRequest request) throws Exception {
|
| | | Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null);
|
| | | Integer monitorPointId = Integer.parseInt(parameters.get("monitorPointId").toString());
|