| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.apache.jasper.compiler.JspUtil;
|
| | | import org.dom4j.Element;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.util.ObjectUtils;
|
| | |
| | | }
|
| | | List<Device> deviceList = deviceMapper.getDeviceListByMonitorPointIds(pointList);
|
| | | List<String> macList = new ArrayList<>();
|
| | | List<String> macList1 = new ArrayList<>();
|
| | | List<Map<String, Object>> beamList = new ArrayList<>();
|
| | | List<Map<String, Object>> tvocList=new ArrayList<>();
|
| | | if (deviceList.size() != 0) {
|
| | | for (Device device : deviceList) {
|
| | | String mac = device.getMac();
|
| | | macList.add(mac);
|
| | | macList.add(device.getMac());
|
| | | }
|
| | |
|
| | | parameters.put("macs", macList);
|
| | | beamList = historyHourlyMapper.getBeamByMacs(parameters);
|
| | | Map<String, Object> map = new HashMap<>();
|
| | | if (name.equals("沧州市")) {
|
| | | List<Integer> list=new ArrayList<>();
|
| | | list.add(48);
|
| | | List<Device> pointIds = deviceMapper.getDeviceListByMonitorPointIds(list);
|
| | | for (Device device : pointIds) {
|
| | | if (device.getId() != 1075) {
|
| | | macList1.add(device.getMac());
|
| | | }
|
| | |
|
| | | }
|
| | | }else {
|
| | | macList1=macList;
|
| | | }
|
| | | map.put("macs", macList1);
|
| | | map.put("start", parameters.get("start"));
|
| | | map.put("end", parameters.get("end"));
|
| | | tvocList = historyHourlyMapper.getTVOCByMacs(map);
|
| | | }
|
| | | List<Map<String, Object>> realList = realWeatherMapper.getRealWeather(parameters);
|
| | | List<Map<String, Object>> realWeatherList = new ArrayList<>();
|
| | | for (Map<String, Object> realMap : realList) {
|
| | |
| | | if (precip6HourMap != null) {
|
| | | realMap.put("precip6", precip6HourMap.get("precip6").toString());
|
| | | }
|
| | |
|
| | | for (Map<String, Object> tvocMap : tvocList) {
|
| | | String ttime = tvocMap.get("time").toString();
|
| | | if (ttime.equals(rtime)) {
|
| | | realMap.put("TVOC", tvocMap.get("TVOC").toString());
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | List<Map<String, Object>> list = new ArrayList<>();
|