mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
改为异步操作
This commit is contained in:
@@ -1067,9 +1067,6 @@ public class OrderService {
|
|||||||
memberTransactionRecordService.insertSelective(record);
|
memberTransactionRecordService.insertSelective(record);
|
||||||
|
|
||||||
if (StringUtils.equals(scenarioType, ScenarioEnum.ORDER.getValue())) { // 1-订单支付
|
if (StringUtils.equals(scenarioType, ScenarioEnum.ORDER.getValue())) { // 1-订单支付
|
||||||
// JSONObject json = new JSONObject();
|
|
||||||
// json.put("paymentId", paymentId);
|
|
||||||
// json.put("amount", amount);
|
|
||||||
PaymentInfo paymentInfo = new PaymentInfo();
|
PaymentInfo paymentInfo = new PaymentInfo();
|
||||||
paymentInfo.setPaymentId(paymentId);
|
paymentInfo.setPaymentId(paymentId);
|
||||||
paymentInfo.setAmount(amount.toString());
|
paymentInfo.setAmount(amount.toString());
|
||||||
@@ -1087,7 +1084,13 @@ public class OrderService {
|
|||||||
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));
|
orderPayRecordService.batchInsert(Lists.newArrayList(orderPayRecord));
|
||||||
|
|
||||||
// 更新冻结金额 支付成功后全部冻结
|
// 更新冻结金额 支付成功后全部冻结
|
||||||
memberAdapayRecordService.updateFreezeAmount(paymentId, amount);
|
CompletableFuture.runAsync(() -> {
|
||||||
|
try {
|
||||||
|
memberAdapayRecordService.updateFreezeAmount(paymentId, amount);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("更新冻结金额 支付成功后全部冻结error", e);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// 支付订单成功
|
// 支付订单成功
|
||||||
PayOrderSuccessCallbackDTO callbackDTO = PayOrderSuccessCallbackDTO.builder()
|
PayOrderSuccessCallbackDTO callbackDTO = PayOrderSuccessCallbackDTO.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user