Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QG
customer-service
Commits
3ba8cb63
Commit
3ba8cb63
authored
Mar 03, 2022
by
吴琼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiugai
parent
6b88fc53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
TransactionReceiptRecordServiceImpl.java
...mer/service/impl/TransactionReceiptRecordServiceImpl.java
+11
-5
No files found.
src/main/java/cn/quantgroup/customer/service/impl/TransactionReceiptRecordServiceImpl.java
View file @
3ba8cb63
...
@@ -71,8 +71,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -71,8 +71,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
@Autowired
@Autowired
private
UserSdkImpl
userSdk
;
private
UserSdkImpl
userSdk
;
//
@Value("${kdsp-operation}")
@Value
(
"${kdsp-operation}"
)
private
String
kdspOperationUrl
=
"http://kdsp-operation-qa2.liangkebang.net"
;
private
String
kdspOperationUrl
;
@Value
(
"${pdf.quantgroup.cn.http}"
)
@Value
(
"${pdf.quantgroup.cn.http}"
)
private
String
contractUrl
;
private
String
contractUrl
;
...
@@ -300,7 +300,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -300,7 +300,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
Integer
userId
=
record
.
getUserId
();
Integer
userId
=
record
.
getUserId
();
String
orderNo
=
record
.
getOrderNo
();
String
orderNo
=
record
.
getOrderNo
();
//调用kdsp接口获取交易凭证订单信息
//调用kdsp接口获取交易凭证订单信息
String
url
=
kdspOperationUrl
+
"/api/kdsp/op/fa-cui/transaction-proof/query"
;
//String url = kdspOperationUrl + "/api/kdsp/op/fa-cui/transaction-proof/query";
String
url
=
"http://kdsp-operation-qa2.liangkebang.net/api/kdsp/op/fa-cui/transaction-proof/query"
;
try
{
try
{
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
Map
<
String
,
String
>
header
=
Maps
.
newHashMap
();
header
.
put
(
"Content-type"
,
"application/json"
);
header
.
put
(
"Content-type"
,
"application/json"
);
...
@@ -317,6 +318,9 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -317,6 +318,9 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//得到json字符串
//得到json字符串
String
result
=
httpService
.
post
(
url
,
header
,
paramList
);
String
result
=
httpService
.
post
(
url
,
header
,
paramList
);
//转换成json 对象
//转换成json 对象
if
(
StringUtils
.
isBlank
(
result
)){
throw
new
RuntimeException
(
"未查询到订单数据"
);
}
JSONObject
json
=
JSONObject
.
parseObject
(
result
);
JSONObject
json
=
JSONObject
.
parseObject
(
result
);
String
jsonResult
=
json
.
getString
(
"data"
);
String
jsonResult
=
json
.
getString
(
"data"
);
String
businessCode
=
json
.
getString
(
"businessCode"
);
String
businessCode
=
json
.
getString
(
"businessCode"
);
...
@@ -621,7 +625,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -621,7 +625,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
//调用天津自牧用户中心接口
//调用天津自牧用户中心接口
Map
param
=
Maps
.
newHashMap
();
Map
param
=
Maps
.
newHashMap
();
param
.
put
(
"userIds"
,
record
.
getUserId
());
param
.
put
(
"userIds"
,
record
.
getUserId
());
String
userUrl
=
userSysUrl
+
"/api/sync/listByUserIds"
;
//String userUrl = userSysUrl + "/api/sync/listByUserIds";
String
userUrl
=
"http://passportapi-qa2.liangkebang.net/api/sync/listByUserIds"
;
String
userResult
=
httpService
.
get
(
userUrl
,
param
);
String
userResult
=
httpService
.
get
(
userUrl
,
param
);
if
(
StringUtils
.
isEmpty
(
userResult
))
{
if
(
StringUtils
.
isEmpty
(
userResult
))
{
record
.
setImportStatus
(
2
);
record
.
setImportStatus
(
2
);
...
@@ -646,7 +651,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
...
@@ -646,7 +651,8 @@ public class TransactionReceiptRecordServiceImpl implements ITransactionReceiptR
header
.
put
(
"Content-type"
,
"application/json"
);
header
.
put
(
"Content-type"
,
"application/json"
);
header
.
put
(
"qg-tenant-id"
,
"560761"
);
header
.
put
(
"qg-tenant-id"
,
"560761"
);
//调用电商接口
//调用电商接口
String
kUrl
=
kdspOperationUrl
+
"/api/kdsp/op/fa-cui/transaction-proof/check"
;
//String kUrl = kdspOperationUrl + "/api/kdsp/op/fa-cui/transaction-proof/check";
String
kUrl
=
"http://kdsp-operation-qa2.liangkebang.net/api/kdsp/op/fa-cui/transaction-proof/check"
;
//得到json字符串
//得到json字符串
Map
param1
=
Maps
.
newHashMap
();
Map
param1
=
Maps
.
newHashMap
();
param1
.
put
(
"userId"
,
record
.
getUserId
());
param1
.
put
(
"userId"
,
record
.
getUserId
());
...
...
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