feat(mall): 更新会员钱包相关功能
- 将 MallMemberWallet 类中的 totalScore 字段注释从"累计积分"修改为"累计佣金"
- 在 MallMemberWalletMapper.xml 中添加 total_score 字段的更新语句
- 在VipCommonServiceImpl 中更新会员钱包时增加对 total_score 字段的处理
| | |
| | | private BigDecimal commission; |
| | | |
| | | /** |
| | | * 累计积分 |
| | | * 累计佣金 |
| | | */ |
| | | private BigDecimal totalScore; |
| | | } |
| | |
| | | ); |
| | | // 更新会员钱包中的余额 |
| | | mallMemberWalletService.add(multiply, storeMasterMember.getId(), "commission"); |
| | | mallMemberWalletService.add(multiply, storeMasterMember.getId(), "total_score"); |
| | | |
| | | MallAchieveRecord mallAchieveRecord = new MallAchieveRecord(); |
| | | mallAchieveRecord.setMemberId(mallOrderInfo.getMemberId()); |
| | |
| | | <if test="record.commission != null"> |
| | | , commission = #{record.commission} |
| | | </if> |
| | | <if test="record.totalScore != null"> |
| | | , total_score = #{record.totalScore} |
| | | </if> |
| | | where id=#{record.id} and revision=#{record.revision} |
| | | </update> |
| | | </mapper> |