查询支付确认对象列表

This commit is contained in:
2023-08-21 16:19:33 +08:00
parent 55104d4c6e
commit 295d11ea62
8 changed files with 141 additions and 20 deletions

View File

@@ -972,7 +972,7 @@ public class AdapayService {
/**
* 查询支付确认对象列表
*/
public void queryPaymentConfirmList(QueryPaymentConfirmDTO dto) {
public QueryPaymentConfirmDetailResponse queryPaymentConfirmList(QueryPaymentConfirmDTO dto) {
AbstractAdapayConfig config = AdapayConfigFactory.getConfig(dto.getWechatAppId());
if (config == null) {
throw new BusinessException(ReturnCodeEnum.CODE_ADAPAY_CONFIG_IS_NULL_ERROR);
@@ -981,13 +981,15 @@ public class AdapayService {
param.put("payment_id", dto.getPaymentId());
param.put("app_id", config.getAdapayAppId());
QueryPaymentConfirmDetailResponse queryPaymentConfirmDetailResponse = null;
try {
Map<String, Object> map = PaymentConfirm.queryList(param, config.getWechatAppId());
QueryPaymentConfirmDetailResponse queryPaymentConfirmDetailResponse = JSON.parseObject(JSON.toJSONString(map), QueryPaymentConfirmDetailResponse.class);
log.info("queryPaymentConfirmDetailResponse:{}", JSON.toJSONString(queryPaymentConfirmDetailResponse));
queryPaymentConfirmDetailResponse = JSON.parseObject(JSON.toJSONString(map), QueryPaymentConfirmDetailResponse.class);
// log.info("queryPaymentConfirmDetailResponse:{}", JSON.toJSONString(queryPaymentConfirmDetailResponse));
} catch (BaseAdaPayException e) {
log.error("查询支付确认对象列表error", e);
}
return queryPaymentConfirmDetailResponse;
}
/**