Commit 0e238e12 authored by tangtuo's avatar tangtuo

修改我的nft列表排序功能

parent 84788a56
...@@ -23,6 +23,9 @@ public class CollectionNftVo { ...@@ -23,6 +23,9 @@ public class CollectionNftVo {
@ApiModelProperty("名称") @ApiModelProperty("名称")
private String name; private String name;
@ApiModelProperty("封面")
private String cover;
@ApiModelProperty("主题,多个用逗号,隔开") @ApiModelProperty("主题,多个用逗号,隔开")
private String theme; private String theme;
...@@ -35,5 +38,6 @@ public class CollectionNftVo { ...@@ -35,5 +38,6 @@ public class CollectionNftVo {
this.nftId = nft.getNftId(); this.nftId = nft.getNftId();
this.category = category.getCategoryName(); this.category = category.getCategoryName();
this.name = nft.getName(); this.name = nft.getName();
this.cover = nft.getCover();
} }
} }
...@@ -258,7 +258,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe ...@@ -258,7 +258,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
if (categoryId != null) { if (categoryId != null) {
queryWrapper.eq("category_id", categoryId); queryWrapper.eq("category_id", categoryId);
} }
queryWrapper.orderByDesc("is_top", "publish_time"); queryWrapper.orderByDesc("publish_time");
return nftMapper.selectList(queryWrapper); return nftMapper.selectList(queryWrapper);
} }
......
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