提现申请时,预存款金额为0无法审核通过错误

This commit is contained in:
fengtianyangyang 2022-06-07 18:41:31 +08:00
parent ffca49f469
commit fb45fee426
2 changed files with 4 additions and 4 deletions

View File

@ -93,10 +93,10 @@ public class StoreFlow extends BaseIdEntity {
@ApiModelProperty(value = "平台优惠券 使用金额")
private Double siteCouponPrice;
@ApiModelProperty(value = "站点优惠券佣金比例")
@ApiModelProperty(value = "站点优惠券补贴比例")
private Double siteCouponPoint;
@ApiModelProperty(value = "站点优惠券佣金")
@ApiModelProperty(value = "站点优惠券补贴金额")
private Double siteCouponCommission;
@ApiModelProperty(value = "单品分销返现支出")

View File

@ -168,8 +168,8 @@ public class MemberWalletServiceImpl extends ServiceImpl<MemberWalletMapper, Mem
//检测会员预存款讯息是否存在如果不存在则新建
MemberWallet memberWallet = this.checkMemberWallet(memberWalletUpdateDTO.getMemberId());
//校验此金额是否超过冻结金额
if (0 > CurrencyUtil.sub(memberWallet.getMemberWallet(), memberWalletUpdateDTO.getMoney())) {
throw new ServiceException(ResultCode.WALLET_WITHDRAWAL_INSUFFICIENT);
if (0 > CurrencyUtil.sub(memberWallet.getMemberFrozenWallet(), memberWalletUpdateDTO.getMoney())) {
throw new ServiceException(ResultCode.WALLET_WITHDRAWAL_FROZEN_AMOUNT_INSUFFICIENT);
}
memberWallet.setMemberFrozenWallet(CurrencyUtil.sub(memberWallet.getMemberFrozenWallet(), memberWalletUpdateDTO.getMoney()));
this.updateById(memberWallet);