Pārlūkot izejas kodu

ats相关

master
chenchaod pirms 3 mēnešiem
vecāks
revīzija
89d128c039

+ 1
- 1
gly-base-core/src/main/java/cn/com/taiji/core/model/comm/protocol/ats/weiXin/AtsQueryRefundV2Request.java Parādīt failu

private Integer createType; private Integer createType;


@NotBlank @NotBlank
private String outTradeNo;//商户订单号
private String outRefundNo;//商户退款单号


@NotBlank @NotBlank
private String appId;//服务商的APPID private String appId;//服务商的APPID

+ 3
- 1
zhywpt-service-ats/src/main/java/cn/com/taiji/ats/manager/weixin/QueryRefundV2Manager.java Parādīt failu

import cn.com.taiji.core.entity.dict.pay.RefundChannel; import cn.com.taiji.core.entity.dict.pay.RefundChannel;
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Request; import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Request;
import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Response; import cn.com.taiji.core.model.comm.protocol.ats.weiXin.AtsQueryRefundV2Response;
import cn.com.taiji.core.model.comm.protocol.valid.GlyServiceError;
import com.github.binarywang.wxpay.bean.request.WxPayRefundQueryRequest; import com.github.binarywang.wxpay.bean.request.WxPayRefundQueryRequest;
import com.github.binarywang.wxpay.bean.result.WxPayRefundQueryResult; import com.github.binarywang.wxpay.bean.result.WxPayRefundQueryResult;
import com.github.binarywang.wxpay.config.WxPayConfig; import com.github.binarywang.wxpay.config.WxPayConfig;
try { try {
result = wxPayService.refundQuery(request); result = wxPayService.refundQuery(request);
} catch (WxPayException e) { } catch (WxPayException e) {
throw new RuntimeException(e);
logger.error("微信退款V2查询失败:{}", e.getMessage());
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException(e.getMessage());
} }
//处理响应 //处理响应
AtsQueryRefundV2Response response = copyProperties(result,new AtsQueryRefundV2Response()); AtsQueryRefundV2Response response = copyProperties(result,new AtsQueryRefundV2Response());

Notiek ielāde…
Atcelt
Saglabāt