diff --git a/src/main/java/com/sczx/store/common/enums/WalletChangeTypeEnum.java b/src/main/java/com/sczx/store/common/enums/WalletChangeTypeEnum.java index 4ab28fe..8f23298 100644 --- a/src/main/java/com/sczx/store/common/enums/WalletChangeTypeEnum.java +++ b/src/main/java/com/sczx/store/common/enums/WalletChangeTypeEnum.java @@ -8,8 +8,7 @@ import lombok.Getter; @Getter public enum WalletChangeTypeEnum { REFERRAL("REFERRAL", "引荐"), - WITHDRAWAL("WITHDRAWAL", "提现"), - DISTRIB("DISTRIB", "分润收入"); + WITHDRAWAL("WITHDRAWAL", "提现"); private final String code; diff --git a/src/main/java/com/sczx/store/service/impl/WalletServiceImpl.java b/src/main/java/com/sczx/store/service/impl/WalletServiceImpl.java index e01e476..3c2d5f3 100644 --- a/src/main/java/com/sczx/store/service/impl/WalletServiceImpl.java +++ b/src/main/java/com/sczx/store/service/impl/WalletServiceImpl.java @@ -70,7 +70,7 @@ public class WalletServiceImpl implements IWalletService { //添加钱包变动记录 BaseWalletChangePO baseWalletChangePO = new BaseWalletChangePO(); baseWalletChangePO.setUserId(baseWalletPO.getUserId()); - baseWalletChangePO.setChangeType(WalletChangeTypeEnum.DISTRIB.getCode()); + baseWalletChangePO.setChangeType(WalletChangeTypeEnum.REFERRAL.getCode()); baseWalletChangePO.setChangeTime(LocalDateTime.now()); baseWalletChangePO.setChangeAmount(distibIncomeReq.getAmount()); baseWalletChangeRepo.save(baseWalletChangePO);