mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 汇付支付 支付回调
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import com.alibaba.fastjson2.JSON;
|
||||
import com.jsowell.pile.domain.AdapayCallbackRecord;
|
||||
import com.jsowell.pile.mapper.AdapayCallbackRecordMapper;
|
||||
import com.jsowell.pile.service.AdapayCallbackRecordService;
|
||||
@@ -27,6 +28,7 @@ public class AdapayCallbackRecordServiceImpl implements AdapayCallbackRecordServ
|
||||
} catch (Exception e) {
|
||||
log.error("查询汇付支付回调记录失败", e);
|
||||
}
|
||||
log.info("查询汇付支付回调记录 orderCode:{}, result:{}", orderCode, JSON.toJSONString(record));
|
||||
return record;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -169,12 +169,12 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
||||
if (CollectionUtils.isNotEmpty(orderListVOS)) {
|
||||
for (OrderListVO orderListVO : orderListVOS) {
|
||||
// 如果是微信支付,通过订单号查询微信支付单号
|
||||
if (StringUtils.equals(PaymentInstitutionsEnum.WECHAT_PAY.getValue(), orderListVO.getPaymentInstitutions())) {
|
||||
WxpayCallbackRecord wxpayCallbackRecord = wxpayCallbackRecordService.selectByOrderCode(orderListVO.getOrderCode());
|
||||
orderListVO.setOutTradeNo(wxpayCallbackRecord.getOutTradeNo());
|
||||
} else {
|
||||
if (StringUtils.equals(PaymentInstitutionsEnum.ADAPAY.getValue(), orderListVO.getPaymentInstitutions())) {
|
||||
AdapayCallbackRecord adapayCallbackRecord = adapayCallbackRecordService.selectByOrderCode(orderListVO.getOrderCode());
|
||||
orderListVO.setOutTradeNo(adapayCallbackRecord.getPaymentId());
|
||||
} else {
|
||||
WxpayCallbackRecord wxpayCallbackRecord = wxpayCallbackRecordService.selectByOrderCode(orderListVO.getOrderCode());
|
||||
orderListVO.setOutTradeNo(wxpayCallbackRecord.getOutTradeNo());
|
||||
}
|
||||
orderListVO.setPileConnectorCode(orderListVO.getPileSn() + orderListVO.getConnectorCode());
|
||||
orderListVO.setOrderStatusDescribe(transformOrderStatusDescribe(orderListVO.getOrderStatus(), orderListVO.getPayStatus()));
|
||||
|
||||
Reference in New Issue
Block a user