Commit b09f74ea authored by tangtuo's avatar tangtuo

nft列表页面加入类别字段

parent 935f46e0
......@@ -30,7 +30,7 @@ public class NftController {
@ApiOperation(value = "查询nft列表")
public ResponseModel<PageInfo<NftListVo>> list(@ApiParam(value = "页码", required = true) @RequestParam Integer pageNum,
@ApiParam(value = "每页记录数", required = true) @RequestParam Integer pageSize,
@ApiParam(value = "类目id") @RequestParam(required = false, defaultValue = "1") Integer categoryId,
@ApiParam(value = "类目id") @RequestParam(required = false) Integer categoryId,
@ApiParam(value = "作品名称") @RequestParam(required = false) String name,
@ApiParam(value = "作品标签") @RequestParam(required = false) String theme,
@ApiParam(value = "注册手机号") @RequestParam(required = false) String telephone,
......
......@@ -18,6 +18,9 @@ public class NftListVo {
@ApiModelProperty("名称")
private String name;
@ApiModelProperty("类别")
private String category;
@ApiModelProperty("主题,多个用逗号,隔开")
private String theme;
......
......@@ -35,10 +35,12 @@
n.is_top,
n.publish_time,
u.nickname AS publisherNickname,
u.telephone AS publisherAccount
u.telephone AS publisherAccount,
c.category_name AS category
FROM
tb_nft n
LEFT JOIN tb_user u ON n.user_id = u.id
LEFT JOIN tb_category c ON n.category_id = c.id
WHERE
is_commemorate=0 and nft_hash != ''
<if test="name != null and name != ''">
......
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