Commit 9feb1881 authored by tangtuo's avatar tangtuo

转让列表加入转让类型字段

parent 065d9adf
...@@ -33,6 +33,9 @@ public class NftTransferDetailVo { ...@@ -33,6 +33,9 @@ public class NftTransferDetailVo {
@ApiModelProperty("区块链高度") @ApiModelProperty("区块链高度")
private Long height; private Long height;
@ApiModelProperty("转让类型 1-转出 2转入")
private Integer transferType;
@ApiModelProperty("创建日期") @ApiModelProperty("创建日期")
private Date createDate; private Date createDate;
......
...@@ -44,7 +44,11 @@ ...@@ -44,7 +44,11 @@
a.create_date, a.create_date,
b.cover, b.cover,
b.`name` AS nftName, 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 FROM tb_nft_transfer_record a
LEFT JOIN tb_nft b ON a.nft_id = b.id LEFT JOIN tb_nft b ON a.nft_id = b.id
LEFT JOIN tb_category e ON b.category_id = e.id LEFT JOIN tb_category e ON b.category_id = e.id
......
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