| | |
| | | Map<String, List<OnlineRateVo>> collectList=new HashMap<>(); |
| | | List<OnlineRateVo> OnlineRateVoList = deviceMapper.getLists(onlineRatePageCond.getOrganizationId(),onlineRatePageCond.getState()); |
| | | if (!ObjectUtils.isEmpty(OnlineRateVoList)){ |
| | | collectList = OnlineRateVoList.stream().collect(Collectors.groupingBy(OnlineRateVo::getHourState)); |
| | | |
| | | for (OnlineRateVo onlineRateVo : OnlineRateVoList) { |
| | | List<HistoryHourly> valueByMacAndTime = historyHourlyService.getValueByMacAndTime(onlineRateVo.getMac(), start, end); |
| | | ArrayList<Date> dates = new ArrayList<>(); |
| | |
| | | } |
| | | }); |
| | | }*/ |
| | | |
| | | if (!ObjectUtils.isEmpty(OnlineRateVoList)){ |
| | | collectList = OnlineRateVoList.stream().collect(Collectors.groupingBy(OnlineRateVo::getHourState)); |
| | | } |
| | | return ObjectUtils.isEmpty(onlineRatePageCond.getHourState())?OnlineRateVoList:collectList.get(onlineRatePageCond.getHourState()); |
| | | } |
| | | |