提交 cef2a5b7 作者: 张小凤

SignInServiceImpl(update)

上级 d36d6fb4
...@@ -87,12 +87,13 @@ public class SignInServiceImpl implements SignInService { ...@@ -87,12 +87,13 @@ public class SignInServiceImpl implements SignInService {
Integer integral = signInDO.getIntegral(); Integer integral = signInDO.getIntegral();
Integer allPoint=0; Integer allPoint=0;
List<UserContinuousCheckInVO> userContinuousCheckInVO = signInDO.getUserContinuousCheckInVO(); List<UserContinuousCheckInVO> userContinuousCheckInVO = signInDO.getUserContinuousCheckInVO();
Integer bonusPoints=0;
List<UserContinuousCheckInVO> collect = userContinuousCheckInVO.stream().filter(t -> t.getNumberOfDays() == 1).collect(Collectors.toList()); List<UserContinuousCheckInVO> collect = userContinuousCheckInVO.stream().filter(t -> t.getNumberOfDays() == 1).collect(Collectors.toList());
for (UserContinuousCheckInVO continuousCheckInVO : collect) { for (UserContinuousCheckInVO continuousCheckInVO : collect) {
Integer bonusPoints = continuousCheckInVO.getBonusPoints(); bonusPoints= continuousCheckInVO.getBonusPoints();
allPoint=integral+bonusPoints;
} }
allPoint=integral+bonusPoints;
changeUserPointVO.setChangePoint(allPoint); changeUserPointVO.setChangePoint(allPoint);
} }
userPointsService.change(changeUserPointVO); userPointsService.change(changeUserPointVO);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论