记得上下班打卡 | 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
d992ac66
Commit
d992ac66
authored
Nov 01, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交下单接口
parent
94522aa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
OrderUtils.java
...in/java/com/liquidnet/service/order/utils/OrderUtils.java
+0
-11
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/OrderUtils.java
View file @
d992ac66
...
@@ -165,12 +165,9 @@ public class OrderUtils {
...
@@ -165,12 +165,9 @@ public class OrderUtils {
public
AdamUserMemberVo
isMember
(
String
uid
)
{
public
AdamUserMemberVo
isMember
(
String
uid
)
{
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
header
.
add
(
"Authorization"
,
"Bearer "
+
CurrentUtil
.
getToken
());
String
resultData
=
HttpUtil
.
get
(
adamUrl
+
"/adam/member/check/depth/new?uid="
+
uid
,
null
,
header
);
String
resultData
=
HttpUtil
.
get
(
adamUrl
+
"/adam/member/check/depth/new?uid="
+
uid
,
null
,
header
);
ResponseDto
<
AdamUserMemberVo
>
vo
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
AdamUserMemberVo
>>()
{
ResponseDto
<
AdamUserMemberVo
>
vo
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
AdamUserMemberVo
>>()
{
});
});
// String rk = AdamRedisConst.INFO_USER_MEMBER.concat(uid);
// AdamUserMemberVo vo = (AdamUserMemberVo) redisUtil.get(rk);
if
(
null
!=
vo
.
getData
()
&&
null
!=
vo
.
getData
().
getUid
()
&&
vo
.
getData
().
isActive
())
{
if
(
null
!=
vo
.
getData
()
&&
null
!=
vo
.
getData
().
getUid
()
&&
vo
.
getData
().
isActive
())
{
return
vo
.
getData
();
return
vo
.
getData
();
}
else
{
}
else
{
...
@@ -182,13 +179,9 @@ public class OrderUtils {
...
@@ -182,13 +179,9 @@ public class OrderUtils {
public
AdamAddressesVo
getAddress
(
String
uid
,
String
addressesId
)
{
public
AdamAddressesVo
getAddress
(
String
uid
,
String
addressesId
)
{
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
header
.
add
(
"Authorization"
,
"Bearer "
+
CurrentUtil
.
getToken
());
String
resultData
=
HttpUtil
.
get
(
adamUrl
+
"/adam/addr/query/depth?uid="
+
uid
+
"&addrId="
+
addressesId
,
null
,
header
);
String
resultData
=
HttpUtil
.
get
(
adamUrl
+
"/adam/addr/query/depth?uid="
+
uid
+
"&addrId="
+
addressesId
,
null
,
header
);
ResponseDto
<
AdamAddressesVo
>
vos
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
AdamAddressesVo
>>()
{
ResponseDto
<
AdamAddressesVo
>
vos
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
AdamAddressesVo
>>()
{
});
});
// String rk = AdamRedisConst.INFO_ADDRESSES.concat(uid);
// List<AdamAddressesVo> vos = (List<AdamAddressesVo>) redisUtil.get(rk);
// return vos.stream().filter(r -> r.getAddressesId().equals(addressesId)).findAny().orElse(null);
if
(
null
!=
vos
.
getData
())
{
if
(
null
!=
vos
.
getData
())
{
return
vos
.
getData
();
return
vos
.
getData
();
}
else
{
}
else
{
...
@@ -199,13 +192,9 @@ public class OrderUtils {
...
@@ -199,13 +192,9 @@ public class OrderUtils {
public
AdamEntersVo
getEnters
(
String
uid
,
String
entersId
)
{
public
AdamEntersVo
getEnters
(
String
uid
,
String
entersId
)
{
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
MultiValueMap
<
String
,
String
>
header
=
CollectionUtil
.
linkedMultiValueMapStringString
();
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
header
.
add
(
"Accept"
,
"application/json;charset=UTF-8"
);
header
.
add
(
"Authorization"
,
"Bearer "
+
CurrentUtil
.
getToken
());
String
resultData
=
HttpUtil
.
get
(
adamUrl
+
"/adam/enters/query/depth?uid="
+
uid
+
"&entersId="
+
entersId
,
null
,
header
);
String
resultData
=
HttpUtil
.
get
(
adamUrl
+
"/adam/enters/query/depth?uid="
+
uid
+
"&entersId="
+
entersId
,
null
,
header
);
ResponseDto
<
AdamEntersVo
>
vos
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
AdamEntersVo
>>()
{
ResponseDto
<
AdamEntersVo
>
vos
=
JsonUtils
.
fromJson
(
resultData
,
new
TypeReference
<
ResponseDto
<
AdamEntersVo
>>()
{
});
});
// String rk = AdamRedisConst.INFO_ENTERS.concat(uid);
// List<AdamEntersVo> vos = (List<AdamEntersVo>) redisUtil.get(rk);
// return vos.stream().filter(r -> r.getEntersId().equals(entersId)).findAny().orElse(null);
if
(
null
!=
vos
.
getData
())
{
if
(
null
!=
vos
.
getData
())
{
return
vos
.
getData
();
return
vos
.
getData
();
}
else
{
}
else
{
...
...
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