记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
27734142
Commit
27734142
authored
Jul 07, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量退款异常接收不处理
parent
596c94a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
KylinRefundExecuteServiceImpl.java
...zai/kylin/service/impl/KylinRefundExecuteServiceImpl.java
+12
-4
HttpClientUtils.java
...et/client/admin/zhengzai/kylin/utils/HttpClientUtils.java
+9
-4
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/KylinRefundExecuteServiceImpl.java
View file @
27734142
...
@@ -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
();
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/utils/HttpClientUtils.java
View file @
27734142
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment