Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
9feb1881
Commit
9feb1881
authored
Sep 15, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转让列表加入转让类型字段
parent
065d9adf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
NftTransferDetailVo.java
...in/java/com/fzm/common/entity/vo/NftTransferDetailVo.java
+3
-0
NftTransferRecordMapper.xml
...mon/src/main/resources/mapper/NftTransferRecordMapper.xml
+11
-7
No files found.
joying-common/src/main/java/com/fzm/common/entity/vo/NftTransferDetailVo.java
View file @
9feb1881
...
...
@@ -33,6 +33,9 @@ public class NftTransferDetailVo {
@ApiModelProperty
(
"区块链高度"
)
private
Long
height
;
@ApiModelProperty
(
"转让类型 1-转出 2转入"
)
private
Integer
transferType
;
@ApiModelProperty
(
"创建日期"
)
private
Date
createDate
;
...
...
joying-common/src/main/resources/mapper/NftTransferRecordMapper.xml
View file @
9feb1881
...
...
@@ -44,7 +44,11 @@
a.create_date,
b.cover,
b.`name` AS nftName,
e.category_name AS category
e.category_name AS category,
case when a.from_address = #{wallet} then 1
else 2
end
as transferType
FROM tb_nft_transfer_record a
LEFT JOIN tb_nft b ON a.nft_id = b.id
LEFT JOIN tb_category e ON b.category_id = e.id
...
...
@@ -69,12 +73,12 @@
b.`name` AS nftName,
b.cover,
b.nft_id,
c.nickname AS fromNickname,
c.avatar AS fromAvatar,
c.wallet AS fromWallet,
d.nickname AS toNickname,
d.avatar AS toAvatar,
d.wallet AS toWallet,
c.nickname
AS fromNickname,
c.avatar
AS fromAvatar,
c.wallet
AS fromWallet,
d.nickname
AS toNickname,
d.avatar
AS toAvatar,
d.wallet
AS toWallet,
e.category_name AS category
FROM tb_nft_transfer_record a
LEFT JOIN tb_nft b ON a.nft_id = b.id
...
...
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