Skip to content

Commit

Permalink
对上一周期的参数赋值做处理
Browse files Browse the repository at this point in the history
  • Loading branch information
chopper711 committed May 13, 2022
1 parent 6331b0d commit 81f48d9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public void execute() {
AtomicReference<Integer> lastNum = new AtomicReference<>(0);
onlineMemberVOS = onlineMemberVOS.stream()
.filter(onlineMemberVO -> {
lastNum.set(onlineMemberVO.getNum());
if (onlineMemberVO.getDate().before(finalCalendar.getTime())) {
lastNum.set(onlineMemberVO.getNum());
}
return onlineMemberVO.getDate().after(finalCalendar.getTime());
})
.collect(Collectors.toList());
Expand Down

0 comments on commit 81f48d9

Please sign in to comment.