Commit d214bc24 by 吕明尚

修改我的信息

parent fea1b4c4
......@@ -7,6 +7,8 @@ import java.math.BigDecimal;
@Data
public class MemberConfigVo extends MemberConfig {
//到下一级的额度差
private BigDecimal nextDifference;
//下一级的额度要求
private Long nextLimitRequirements;
//下一级的会员等级
......
......@@ -209,6 +209,7 @@ public class SConsumerServiceImpl extends ServiceImpl<SConsumerMapper, SConsumer
.eq(MemberConfig::getMembershipLevel, memberConfig.getMembershipLevel() + 1)
);
if (ObjectUtil.isNotEmpty(nexMemberConfig)) {
memberConfigVo.setNextDifference(new BigDecimal(nexMemberConfig.getLimitRequirements()).subtract(consumerMember.getMembershipProgress()));
memberConfigVo.setNextLimitRequirements(nexMemberConfig.getLimitRequirements());
memberConfigVo.setNextMembershipLevel(nexMemberConfig.getMembershipLevel());
memberConfigVo.setNextMembershipName(nexMemberConfig.getLevelName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment