|  |  |  | 
|---|
|  |  |  | String time = map.get("time").toString(); | 
|---|
|  |  |  | time = time.substring(time.length() - 2); | 
|---|
|  |  |  | map.put("time", Integer.valueOf(time)); | 
|---|
|  |  |  | if(parameters.get("type").equals("day")){ | 
|---|
|  |  |  | map.put("time", Integer.valueOf(time)+1); | 
|---|
|  |  |  | if (parameters.get("type").equals("day")) { | 
|---|
|  |  |  | map.put("time", Integer.valueOf(time) + 1); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | map.put("value", map.remove(sensorKey)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | if (minAngle > (Double) longAndLatiList.get(j).get("angle")) { | 
|---|
|  |  |  | minAngle = (Double) longAndLatiList.get(j).get("angle"); | 
|---|
|  |  |  | indexAngle = j; | 
|---|
|  |  |  | }else { | 
|---|
|  |  |  | indexAngle=indexAngle; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | indexAngle = indexAngle; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | preAngleDeviceList.add(deviceList.get((Integer) longAndLatiList.get(indexAngle).get("h"))); | 
|---|
|  |  |  | 
|---|
|  |  |  | locationList.add(fivethLoction); | 
|---|
|  |  |  | String preAngleDeviceString = JSON.toJSON(preAngleDeviceList).toString(); | 
|---|
|  |  |  | params.put("preAngleDeviceString", preAngleDeviceString);//两台添加箭头的设备 | 
|---|
|  |  |  | params.put("locationList",locationList); | 
|---|
|  |  |  | params.put("locationList", locationList); | 
|---|
|  |  |  | return params; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping("weather_nextDay") | 
|---|
|  |  |  | @ApiOperation(value = "未来一天臭氧预测", notes = "未来一天臭氧预测") | 
|---|
|  |  |  | @ApiImplicitParams(value = { | 
|---|
|  |  |  | @ApiImplicitParam(name = "monitorPointId", defaultValue = "6", value = "监控站id", required = true, paramType = "query", dataType = "String"), | 
|---|
|  |  |  | @ApiImplicitParam(name = "time", value = "时间(格式:2020-03-19)", required = true, paramType = "query", dataType = "String")}) | 
|---|
|  |  |  | public ResultBean<List<Map<String, Object>>> getWeatherNextDayDataByRegion(HttpServletRequest request) throws Exception { | 
|---|
|  |  |  | Map<String, Object> parameters = getParametersStartingWith(request, null); | 
|---|
|  |  |  | parameters.put("typeFormat", "%Y-%m-%d %H"); | 
|---|
|  |  |  | List<Map<String, Object>> resultList = weatherService.getNextDayWeatherDataByRegion(parameters); | 
|---|
|  |  |  | return new ResultBean<List<Map<String, Object>>>(resultList); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|