fix(mall): 修正团队累计消费金额的计算逻辑
-将 MallAchieveRecord 的 costAmount 字段更改为 amount 字段
- 优化了 ApiSaleServiceImpl 中的团队消费金额计算逻辑
| | |
| | | apiLevelListInfoVo.setTeamAmount(happySaleLevel.getTeamAmount()); |
| | | apiLevelListInfoVo.setTeamAmountNow( |
| | | CollUtil.isNotEmpty(mallAchieveRecords) |
| | | ? mallAchieveRecords.stream().map(MallAchieveRecord::getCostAmount).reduce(BigDecimal.ZERO, BigDecimal::add) |
| | | ? mallAchieveRecords.stream().map(MallAchieveRecord::getAmount).reduce(BigDecimal.ZERO, BigDecimal::add) |
| | | : BigDecimal.ZERO); |
| | | apiLevelListInfoVos.add(apiLevelListInfoVo); |
| | | }); |