钱包入账
This commit is contained in:
@ -8,8 +8,7 @@ import lombok.Getter;
|
|||||||
@Getter
|
@Getter
|
||||||
public enum WalletChangeTypeEnum {
|
public enum WalletChangeTypeEnum {
|
||||||
REFERRAL("REFERRAL", "引荐"),
|
REFERRAL("REFERRAL", "引荐"),
|
||||||
WITHDRAWAL("WITHDRAWAL", "提现"),
|
WITHDRAWAL("WITHDRAWAL", "提现");
|
||||||
DISTRIB("DISTRIB", "分润收入");
|
|
||||||
|
|
||||||
private final String code;
|
private final String code;
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,7 @@ public class WalletServiceImpl implements IWalletService {
|
|||||||
//添加钱包变动记录
|
//添加钱包变动记录
|
||||||
BaseWalletChangePO baseWalletChangePO = new BaseWalletChangePO();
|
BaseWalletChangePO baseWalletChangePO = new BaseWalletChangePO();
|
||||||
baseWalletChangePO.setUserId(baseWalletPO.getUserId());
|
baseWalletChangePO.setUserId(baseWalletPO.getUserId());
|
||||||
baseWalletChangePO.setChangeType(WalletChangeTypeEnum.DISTRIB.getCode());
|
baseWalletChangePO.setChangeType(WalletChangeTypeEnum.REFERRAL.getCode());
|
||||||
baseWalletChangePO.setChangeTime(LocalDateTime.now());
|
baseWalletChangePO.setChangeTime(LocalDateTime.now());
|
||||||
baseWalletChangePO.setChangeAmount(distibIncomeReq.getAmount());
|
baseWalletChangePO.setChangeAmount(distibIncomeReq.getAmount());
|
||||||
baseWalletChangeRepo.save(baseWalletChangePO);
|
baseWalletChangeRepo.save(baseWalletChangePO);
|
||||||
|
|||||||
Reference in New Issue
Block a user