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
606d66f9
Commit
606d66f9
authored
Sep 23, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
ca149f47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
NftServiceImpl.java
...main/java/com/fzm/common/service/impl/NftServiceImpl.java
+1
-1
NftMapper.xml
joying-common/src/main/resources/mapper/NftMapper.xml
+2
-2
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/NftServiceImpl.java
View file @
606d66f9
...
@@ -204,7 +204,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
...
@@ -204,7 +204,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
User
receiveUser
=
userService
.
getUserByWallet
(
param
.
getReceiveWallet
());
User
receiveUser
=
userService
.
getUserByWallet
(
param
.
getReceiveWallet
());
// 修改nft的拥有者用户id
// 修改nft的拥有者用户id
Nft
transferNft
=
new
Nft
().
Nft
transferNft
=
new
Nft
().
setUserId
(
receiveUser
!=
null
?
receiveUser
.
getId
()
:
null
).
setUserId
(
receiveUser
!=
null
?
receiveUser
.
getId
()
:
0
).
setTransferHash
(
realHash
);
setTransferHash
(
realHash
);
transferNft
.
setId
(
nft
.
getId
());
transferNft
.
setId
(
nft
.
getId
());
updateById
(
transferNft
);
updateById
(
transferNft
);
...
...
joying-common/src/main/resources/mapper/NftMapper.xml
View file @
606d66f9
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<select
id=
"list"
resultType=
"com.fzm.common.entity.Nft"
>
<select
id=
"list"
resultType=
"com.fzm.common.entity.Nft"
>
select * from tb_nft
select * from tb_nft
where status = 1 and is_commemorate=0 and nft_hash != '' and user_id
is not null
where status = 1 and is_commemorate=0 and nft_hash != '' and user_id
> 0
<if
test=
"categoryId != null and categoryId > 0"
>
<if
test=
"categoryId != null and categoryId > 0"
>
and category_id=#{categoryId}
and category_id=#{categoryId}
</if>
</if>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<foreach
collection=
"list"
item=
"id"
separator=
","
>
<foreach
collection=
"list"
item=
"id"
separator=
","
>
#{id}
#{id}
</foreach>
</foreach>
) and a.user_id
is not null
) and a.user_id
>0
</select>
</select>
<select
id=
"page"
resultType=
"com.fzm.common.entity.vo.NftListVo"
>
<select
id=
"page"
resultType=
"com.fzm.common.entity.vo.NftListVo"
>
...
...
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