mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-25 01:29:47 +08:00
update 汇付余额退款
This commit is contained in:
@@ -277,7 +277,7 @@ public class PayController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 汇付支付退款/汇付支付余额退款/用户余额退款
|
* 汇付支付退款/汇付支付余额退款/用户余额退款/汇付余额退款
|
||||||
* https://api.jsowellcloud.com/uniapp/pay/refundBalance
|
* https://api.jsowellcloud.com/uniapp/pay/refundBalance
|
||||||
*/
|
*/
|
||||||
@PostMapping("/refundBalance")
|
@PostMapping("/refundBalance")
|
||||||
|
|||||||
@@ -261,7 +261,7 @@ public class TempController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量余额退款接口
|
* 批量余额退款接口
|
||||||
*
|
* http://localhost:8080/temp/batchWechatRefund
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -2435,8 +2435,8 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
|
|
||||||
// 更新这笔交易的剩余金额
|
// 更新这笔交易的剩余金额
|
||||||
MemberAdapayRecord record = memberAdapayRecordService.selectByPaymentId(paymentId);
|
MemberAdapayRecord record = memberAdapayRecordService.selectByPaymentId(paymentId);
|
||||||
// 更新此笔交易单的消费金额 = 历史消费金额 + 本次消费金额
|
// 更新此笔交易单的退款金额 = 历史退款金额 + 退款金额
|
||||||
record.setSpendAmt(record.getSpendAmt().add(deductionAmount));
|
record.setRefundAmt(record.getRefundAmt().add(deductionAmount));
|
||||||
// 更新此笔交易单的剩余金额 = 支付金额 - 累计退款金额 - 累计消费金额
|
// 更新此笔交易单的剩余金额 = 支付金额 - 累计退款金额 - 累计消费金额
|
||||||
record.setBalanceAmt(record.getPayAmt().subtract(record.getRefundAmt()).subtract(record.getSpendAmt()));
|
record.setBalanceAmt(record.getPayAmt().subtract(record.getRefundAmt()).subtract(record.getSpendAmt()));
|
||||||
memberAdapayRecordService.updateByPrimaryKeySelective(record);
|
memberAdapayRecordService.updateByPrimaryKeySelective(record);
|
||||||
|
|||||||
Reference in New Issue
Block a user