钱包入账
This commit is contained in:
@ -8,8 +8,7 @@ import lombok.Getter;
|
||||
@Getter
|
||||
public enum WalletChangeTypeEnum {
|
||||
REFERRAL("REFERRAL", "引荐"),
|
||||
WITHDRAWAL("WITHDRAWAL", "提现"),
|
||||
DISTRIB("DISTRIB", "分润收入");
|
||||
WITHDRAWAL("WITHDRAWAL", "提现");
|
||||
|
||||
private final String code;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user