钱包入账

This commit is contained in:
2025-09-29 00:19:30 +08:00
parent babe033c22
commit f81b60720c
2 changed files with 2 additions and 3 deletions

View File

@ -8,8 +8,7 @@ import lombok.Getter;
@Getter
public enum WalletChangeTypeEnum {
REFERRAL("REFERRAL", "引荐"),
WITHDRAWAL("WITHDRAWAL", "提现"),
DISTRIB("DISTRIB", "分润收入");
WITHDRAWAL("WITHDRAWAL", "提现");
private final String code;

View File

@ -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);