|  |  | 
 |  |  |     DeviceMapper deviceMapper; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<DeviceAndFiveMinuteDataDTO> queryDeviceAndFiveMinuteData(QueryDeviceAndFiveMinuteDataForm form) { | 
 |  |  |     public List<Map<String, Object>> queryDeviceAndFiveMinuteData(QueryDeviceAndFiveMinuteDataForm form) { | 
 |  |  |         //取参 | 
 |  |  |         String times = DateUtils.dateToDateString(new Date(),DateUtils.yyyyMM_EN); | 
 |  |  |         Integer organizationId = form.getOrganizationId(); | 
 |  |  |         Integer regionCode = form.getRegionCode(); | 
 |  |  |         String sensorCode = form.getSensorCode(); | 
 |  |  |         Map<String, Object> params = new HashMap<>(); | 
 |  |  |         String type = "$."+ sensorCode; | 
 |  |  |         String region = null; | 
 |  |  |         String endHourlyTime = null; | 
 |  |  |         if (regionCode != null && organizationId!=24) { | 
 |  |  |             region = RegionCodeUtils.regionCodeConvertToName(regionCode); | 
 |  |  |             params.put("region",region); | 
 |  |  |             params.put("regionCode",regionCode); | 
 |  |  |         } | 
 |  |  |         params.put("organizationId",organizationId); | 
 |  |  |         if (form.getChooseTime().equals("true")) { | 
 |  |  |             endHourlyTime = form.getTime(); | 
 |  |  |             Date time = DateUtils.convertDate(endHourlyTime); | 
 |  |  |             times = DateUtils.dateToDateString(time,DateUtils.yyyyMM_EN); | 
 |  |  |         } | 
 |  |  |         List<Map<String, Object>> listAll = deviceMapper.deviceList(organizationId,regionCode,region,type,sensorCode,times,endHourlyTime); | 
 |  |  |         //查询组织在对应地区下的站点以及设备 | 
 |  |  |         /*List<MonitorPoint> monitorPoints = monitorPointService.queryByOrgIdAndRegionCode(new MonitorPointQueryForm(organizationId, regionCode)); | 
 |  |  |         List<Device> devices = new ArrayList<>(); | 
 |  |  | 
 |  |  |  | 
 |  |  |         }*/ | 
 |  |  |         //查询所有设备对应的数据 | 
 |  |  |         List<Device> devices = deviceMapper.deviceList(organizationId,regionCode,region); | 
 |  |  |         /*List<Device> devices = new ArrayList<>(); | 
 |  |  |         List<DeviceAndFiveMinuteDataDTO> dtos = new ArrayList<>(); | 
 |  |  |         if (form.getChooseTime().equals("true")) { | 
 |  |  |             String time = form.getTime(); | 
 |  |  | 
 |  |  |             dto.setDevice(device); | 
 |  |  |             dto.setSensorValue(sensorValue); | 
 |  |  |             dtos.add(dto); | 
 |  |  |         } | 
 |  |  |         return dtos; | 
 |  |  |         }*/ | 
 |  |  |         return listAll; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override |