Browse Source

ats相关

master
chenchaod 3 months ago
parent
commit
89d128c039

+ 1
- 1
gly-base-core/src/main/java/cn/com/taiji/core/model/comm/protocol/ats/weiXin/AtsQueryRefundV2Request.java View File

@@ -34,7 +34,7 @@ public class AtsQueryRefundV2Request extends AbstractAtsRequest<AtsQueryRefundV2
private Integer createType;

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

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

+ 3
- 1
zhywpt-service-ats/src/main/java/cn/com/taiji/ats/manager/weixin/QueryRefundV2Manager.java View File

@@ -6,6 +6,7 @@ import cn.com.taiji.common.manager.net.http.ServiceHandleException;
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.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.result.WxPayRefundQueryResult;
import com.github.binarywang.wxpay.config.WxPayConfig;
@@ -42,7 +43,8 @@ public class QueryRefundV2Manager extends AbstractManager {
try {
result = wxPayService.refundQuery(request);
} 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());

Loading…
Cancel
Save