Commit 606d66f9 authored by tangtuo's avatar tangtuo

修改bug

parent ca149f47
......@@ -204,7 +204,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
User receiveUser = userService.getUserByWallet(param.getReceiveWallet());
// 修改nft的拥有者用户id
Nft transferNft = new Nft().
setUserId(receiveUser != null ? receiveUser.getId() : null).
setUserId(receiveUser != null ? receiveUser.getId() : 0).
setTransferHash(realHash);
transferNft.setId(nft.getId());
updateById(transferNft);
......
......@@ -4,7 +4,7 @@
<select id="list" resultType="com.fzm.common.entity.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">
and category_id=#{categoryId}
</if>
......@@ -26,7 +26,7 @@
<foreach collection="list" item="id" separator=",">
#{id}
</foreach>
) and a.user_id is not null
) and a.user_id >0
</select>
<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