From f81b60720cc8f4b23efad28ec992b2da93d5c0f4 Mon Sep 17 00:00:00 2001 From: zhangli <123879394@qq.com> Date: Mon, 29 Sep 2025 00:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=B1=E5=8C=85=E5=85=A5=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/sczx/store/common/enums/WalletChangeTypeEnum.java | 3 +-- .../java/com/sczx/store/service/impl/WalletServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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);