update 微信第三方平台获取令牌接口

This commit is contained in:
Lemon
2023-07-28 15:35:06 +08:00
parent 9d2a251e8b
commit a5fcc876a0
3 changed files with 11 additions and 6 deletions

View File

@@ -325,7 +325,11 @@ public class MemberService {
// PageHelper.startPage(pageNum, pageSize);
List<MemberWalletLogVO> list = memberBasicInfoService.getMemberWalletDetail(dto);
// 总支出
BigDecimal totalConsumption = list.stream().map(MemberWalletLogVO::getOrderAmount).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal totalConsumption = list.stream()
.map(MemberWalletLogVO::getOrderAmount)
.filter(Objects::nonNull)
.reduce(BigDecimal.ZERO, BigDecimal::add);
vo.setTotalConsumption(totalConsumption);
// PageInfo<MemberWalletLogVO> pageInfo = new PageInfo<>(list);