Commit 606d66f9 authored by tangtuo's avatar tangtuo

修改bug

parent ca149f47
...@@ -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);
......
...@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment