| | |
| | | ArrayList arrayList2 = new ArrayList(); |
| | | if (CommonConstant.VERSION_NUM.equals(type)) { |
| | | map = (Map) outputList2.stream().filter(o -> { |
| | | return Func.isNotEmpty(o.getTs()); |
| | | return Func.isNotEmpty(o.getTime()); |
| | | }).collect(Collectors.groupingBy(o2 -> { |
| | | return o2.getTs().toLocalDateTime().getDayOfMonth() + "-" + o2.getTs().toLocalDateTime().getHour(); |
| | | return o2.getTime().toLocalDateTime().getDayOfMonth() + "-" + o2.getTime().toLocalDateTime().getHour(); |
| | | }, Collectors.summingLong((v0) -> { |
| | | return v0.getOutput(); |
| | | }))); |
| | | } else { |
| | | map = (Map) outputList2.stream().filter(o3 -> { |
| | | return o3.getTs() != null; |
| | | return o3.getTime() != null; |
| | | }).collect(Collectors.groupingBy(o4 -> { |
| | | return DateUtil.format(o4.getTs(), DateConstant.PATTERN_DATE); |
| | | return DateUtil.format(o4.getTime(), DateConstant.PATTERN_DATE); |
| | | }, Collectors.summingLong((v0) -> { |
| | | return v0.getOutput(); |
| | | }))); |