记得上下班打卡 | git大法好,push需谨慎

Commit 27734142 authored by jiangxiulong's avatar jiangxiulong

批量退款异常接收不处理

parent 596c94a6
...@@ -73,7 +73,11 @@ public class KylinRefundExecuteServiceImpl { ...@@ -73,7 +73,11 @@ public class KylinRefundExecuteServiceImpl {
if (order.getPriceExpress() != null) { if (order.getPriceExpress() != null) {
refundApplyParam.setRefundPriceExpress(order.getPriceExpress().doubleValue()); refundApplyParam.setRefundPriceExpress(order.getPriceExpress().doubleValue());
} }
ResponseDto res = kylinOrderRefundsServiceImpl.refundApply(refundApplyParam); try {
ResponseDto res = kylinOrderRefundsServiceImpl.refundApply(refundApplyParam);
} catch (Exception e) {
}
} }
count = orderList.size(); count = orderList.size();
...@@ -133,7 +137,7 @@ public class KylinRefundExecuteServiceImpl { ...@@ -133,7 +137,7 @@ public class KylinRefundExecuteServiceImpl {
List<KylinOrderRefunds> refundList = kylinOrderRefundsMapper.getRefundList(whereType, refundBatchId, whereStatus, mid, limitNum); List<KylinOrderRefunds> refundList = kylinOrderRefundsMapper.getRefundList(whereType, refundBatchId, whereStatus, mid, limitNum);
List<String> refundIds = null; List<String> refundIds = null;
if (refundList != null && refundList.size()>0) { if (refundList != null && refundList.size() > 0) {
refundIds = refundList.stream().map(KylinOrderRefunds -> KylinOrderRefunds.getOrderRefundsId()).collect(Collectors.toList()); refundIds = refundList.stream().map(KylinOrderRefunds -> KylinOrderRefunds.getOrderRefundsId()).collect(Collectors.toList());
RefundApplyParam refundApplyParam = new RefundApplyParam(); RefundApplyParam refundApplyParam = new RefundApplyParam();
...@@ -145,11 +149,15 @@ public class KylinRefundExecuteServiceImpl { ...@@ -145,11 +149,15 @@ public class KylinRefundExecuteServiceImpl {
if (null != refundBatchApplyParam.getReject()) { if (null != refundBatchApplyParam.getReject()) {
refundApplyParam.setReject(refundBatchApplyParam.getReject()); refundApplyParam.setReject(refundBatchApplyParam.getReject());
} }
ResponseDto res = kylinOrderRefundsServiceImpl.refundCheckStatus(refundApplyParam); try {
ResponseDto res = kylinOrderRefundsServiceImpl.refundCheckStatus(refundApplyParam);
} catch (Exception e) {
}
} }
count = refundList.size(); count = refundList.size();
if (count > 0){ if (count > 0) {
KylinOrderRefunds lastInfo = refundList.get(count - 1); KylinOrderRefunds lastInfo = refundList.get(count - 1);
if (lastInfo != null) { if (lastInfo != null) {
mid = lastInfo.getMid(); mid = lastInfo.getMid();
......
...@@ -2,6 +2,7 @@ package com.liquidnet.client.admin.zhengzai.kylin.utils; ...@@ -2,6 +2,7 @@ package com.liquidnet.client.admin.zhengzai.kylin.utils;
import com.liquidnet.client.admin.common.utils.StringUtils; import com.liquidnet.client.admin.common.utils.StringUtils;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.security.KeyManagementException; import java.security.KeyManagementException;
...@@ -13,6 +14,7 @@ import java.util.Map; ...@@ -13,6 +14,7 @@ import java.util.Map;
import javax.net.ssl.SSLContext; import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManager; import javax.net.ssl.TrustManager;
import javax.net.ssl.X509TrustManager; import javax.net.ssl.X509TrustManager;
import org.apache.http.HttpResponse; import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair; import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient; import org.apache.http.client.HttpClient;
...@@ -29,11 +31,14 @@ import org.apache.http.entity.ByteArrayEntity; ...@@ -29,11 +31,14 @@ import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.entity.StringEntity; import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.message.BasicNameValuePair; import org.apache.http.message.BasicNameValuePair;
/** /**
* author: * <p>
* date: * HttpClientUtils
* time: * </p>
* description: HttpClient调用Https接口封装. *
* @author jiangxiulong
* @since 2021-07-07
*/ */
@Component @Component
public class HttpClientUtils { public class HttpClientUtils {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment