| | |
| | | } |
| | | |
| | | @Override |
| | | public List<HistoryDaily> getHistoryDailyByMacAndTimeSlot( List<String> macs, Date startDate, Date endDate) { |
| | | QueryWrapper<HistoryDaily> wrapper = new QueryWrapper<>(); |
| | | wrapper.in("mac", macs); |
| | | wrapper.between("time", startDate, endDate); |
| | | List<HistoryDaily> historyDailies = historyDailyMapper.selectList(wrapper); |
| | | return historyDailies; |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, Object> getThermodynamicDiagramDataByOrgIdSensorCodeTime(Map<String, Object> parameters) { |
| | | Map<String, Object> resultMap = new HashMap<>(); |
| | | int orgId = Integer.parseInt(parameters.get("organization_id").toString()); |
| | |
| | | boundary_point_one.add(Double.parseDouble(boundary_point_one_array[0])); |
| | | boundary_point_one.add(Double.parseDouble(boundary_point_one_array[1])); |
| | | boundary_pointList.add(boundary_point_one); |
| | | } |
| | | if (boundary_pointList.size()>0){ |
| | | boundary_pointList.add(boundary_pointList.get(0)); |
| | | } |
| | | bound.add(boundary_pointList); |
| | | resultMap.put("bound", bound); |
| | |
| | | boundary_point_one.add(Double.parseDouble(boundary_point_one_array[1])); |
| | | boundary_pointList.add(boundary_point_one); |
| | | } |
| | | if (boundary_pointList.size()>0){ |
| | | boundary_pointList.add(boundary_pointList.get(0)); |
| | | } |
| | | bound.add(boundary_pointList); |
| | | List centerPoint = new ArrayList(); |
| | | centerPoint.add(servicesScope.getCenterLongitude()); |