会员充值 赠送 退款记录
This commit is contained in:
parent
15cc93c0ee
commit
29ae670ec0
|
|
@ -524,7 +524,17 @@ public class PayServiceImpl implements PayService {
|
||||||
//更新会员余额 并生成流水
|
//更新会员余额 并生成流水
|
||||||
shopUserService.updateMoney(shopUser.getShopId(), shopUserMoneyEditDTO);
|
shopUserService.updateMoney(shopUser.getShopId(), shopUserMoneyEditDTO);
|
||||||
userFlowService.updateRefund(inFlow.getId(), refPayParam.getRefAmount());
|
userFlowService.updateRefund(inFlow.getId(), refPayParam.getRefAmount());
|
||||||
if (giftFlow != null) {
|
if (giftFlow != null && (giftFlow.getAmount().subtract(refPayParam.getRefAmount())).compareTo(BigDecimal.ZERO) > 0) {
|
||||||
|
ShopUserMoneyEditDTO giftFlowEdit = new ShopUserMoneyEditDTO()
|
||||||
|
.setId(shopUser.getId())
|
||||||
|
.setMoney(giftFlow.getAmount())
|
||||||
|
.setType(0)
|
||||||
|
.setRemark("退款")
|
||||||
|
.setBizEnum(ShopUserFlowBizEnum.RECHARGE_REFUND)
|
||||||
|
.setRelationId(refPaymentId)
|
||||||
|
.setRechargeId(giftFlow.getId());
|
||||||
|
//更新会员余额 并生成流水
|
||||||
|
shopUserService.updateMoney(shopUser.getShopId(), giftFlowEdit);
|
||||||
userFlowService.updateRefund(giftFlow.getId(), giftFlow.getAmount());
|
userFlowService.updateRefund(giftFlow.getId(), giftFlow.getAmount());
|
||||||
}
|
}
|
||||||
//移除优惠券
|
//移除优惠券
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue