| | |
| | | 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); |
| | | } |
| | | map.put("value", map.remove(sensorKey)); |
| | | } |
| | | return new ResultBean<List<Map<String, Object>>>(list); |
| | |
| | | params.put("description",parameters.get("description")); |
| | | String paramsJson = params.toJSONString(); |
| | | model.addObject("uavChannelParams", paramsJson); |
| | | model.setViewName("uavchannel"); |
| | | model.setViewName("uavchannelnew"); |
| | | return model; |
| | | } else { |
| | | StringBuilder msg = new StringBuilder(); |
| | |
| | | String YearAndDay = time.substring(0, time.lastIndexOf("-")); |
| | | String Hour = time.substring(time.lastIndexOf("-") + 1); |
| | | String Time = YearAndDay + " " + Hour + ":00:00"; |
| | | |
| | | |
| | | int monitPointId=Integer.parseInt(monitPointIdS); |
| | | //获取公司信息 |
| | | JSONObject params=monitorPointService.getMonitorPointById(monitPointId,Time,3,sensor); |