记得上下班打卡 | 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
7c6313a9
Commit
7c6313a9
authored
Aug 17, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实现百度链nft转让查询功能
parent
608681ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
GalaxyQueryUserTradeAllListReqDto.java
...e/galaxy/dto/param/GalaxyQueryUserTradeAllListReqDto.java
+2
-3
XuperTradeQueryBiz.java
...t/service/galaxy/router/xuper/biz/XuperTradeQueryBiz.java
+6
-9
No files found.
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeAllListReqDto.java
View file @
7c6313a9
...
@@ -24,9 +24,8 @@ public class GalaxyQueryUserTradeAllListReqDto extends GalaxyBaseReqDto implemen
...
@@ -24,9 +24,8 @@ public class GalaxyQueryUserTradeAllListReqDto extends GalaxyBaseReqDto implemen
@NotBlank
(
message
=
"区块链地址不能为空!"
)
@NotBlank
(
message
=
"区块链地址不能为空!"
)
private
String
blockChainAddress
;
private
String
blockChainAddress
;
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"nftId"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"seriesId(可选,默认为0查询全部)"
)
@NotBlank
(
message
=
"nftId不能为空!"
)
private
String
seriesId
=
"0"
;
private
String
nftId
;
@Override
@Override
public
String
toString
(){
public
String
toString
(){
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/galaxy/router/xuper/biz/XuperTradeQueryBiz.java
View file @
7c6313a9
...
@@ -332,15 +332,7 @@ public class XuperTradeQueryBiz implements IGalaxyRouterStrategyTradeQuery {
...
@@ -332,15 +332,7 @@ public class XuperTradeQueryBiz implements IGalaxyRouterStrategyTradeQuery {
Xuper011ListSdsByAddrRespDto
respDto
=
null
;
Xuper011ListSdsByAddrRespDto
respDto
=
null
;
try
{
try
{
//资产id
//资产id
Long
assetId
=
null
;
Long
assetId
=
Long
.
parseLong
(
reqDto
.
getSeriesId
());
//碎片id
Long
shardId
=
null
;
String
nftId
=
reqDto
.
getNftId
();
if
(
StringUtil
.
isNotEmpty
(
nftId
)){
assetId
=
Long
.
parseLong
(
nftId
.
substring
(
0
,
nftId
.
lastIndexOf
(
"_"
)));
shardId
=
Long
.
parseLong
(
nftId
.
substring
(
nftId
.
lastIndexOf
(
"_"
)+
1
,
nftId
.
length
()));
}
xuper011ListSdsByAddrReqDto
.
setAddr
(
addr
);
xuper011ListSdsByAddrReqDto
.
setAddr
(
addr
);
xuper011ListSdsByAddrReqDto
.
setPage
(
1
);
xuper011ListSdsByAddrReqDto
.
setPage
(
1
);
...
@@ -363,8 +355,13 @@ public class XuperTradeQueryBiz implements IGalaxyRouterStrategyTradeQuery {
...
@@ -363,8 +355,13 @@ public class XuperTradeQueryBiz implements IGalaxyRouterStrategyTradeQuery {
tradeInfoDto
.
setHash
(
shardMeta
.
getTxId
());
tradeInfoDto
.
setHash
(
shardMeta
.
getTxId
());
tradeAllListRespDto
.
getTradeList
().
add
(
tradeInfoDto
);
tradeAllListRespDto
.
getTradeList
().
add
(
tradeInfoDto
);
}
}
}
else
{
tradeAllListRespDto
.
setTradeList
(
null
);
tradeAllListRespDto
.
setTotal
(
Long
.
parseLong
(
String
.
valueOf
(
respDto
.
getList
().
size
())));
}
}
return
ResponseDto
.
success
(
tradeAllListRespDto
);
return
ResponseDto
.
success
(
tradeAllListRespDto
);
}
else
{
return
ResponseDto
.
failure
(
GalaxyErrorEnum
.
SERIES_NFT_INFO_NOT_EXIST
.
getCode
(),
GalaxyErrorEnum
.
SERIES_NFT_INFO_NOT_EXIST
.
getMessage
());
}
}
}
catch
(
XupterException
e
)
{
}
catch
(
XupterException
e
)
{
log
.
error
(
"biz error msg "
+
e
.
getMessage
(),
e
);
log
.
error
(
"biz error msg "
+
e
.
getMessage
(),
e
);
...
...
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