String local = LocalDate.now().toString().replaceAll("-", "").substring(0, 6);
System.out.println("---------------" + local);
Integer localYearMonth = Integer.valueOf(local);
boolean b = Objects.nonNull(dept4);
List<Dept> collect = strings.stream().filter(Dept -> Objects.nonNull(Dept))
.filter(a -> (Math.abs(Integer.valueOf(a.getAreaId()) - localYearMonth)) <= 200)
.collect(Collectors.toList());
// 按月分表标签:stream,localYearMonth,对象,valueOf,list,collect,过滤,Integer,local From: https://www.cnblogs.com/daofree/p/17566996.html
Map<String, List<MsgReciveEntity>> receiveMonth = collectByTime.stream().collect(Collectors.groupingBy(MsgReciveEntity::getMsgMonth));