Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lei
fzm-joying
Commits
b09f74ea
Commit
b09f74ea
authored
Jul 28, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nft列表页面加入类别字段
parent
935f46e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
NftController.java
...src/main/java/com/fzm/admin/controller/NftController.java
+1
-1
NftListVo.java
...mon/src/main/java/com/fzm/common/entity/vo/NftListVo.java
+3
-0
NftMapper.xml
joying-common/src/main/resources/mapper/NftMapper.xml
+3
-1
No files found.
joying-admin/src/main/java/com/fzm/admin/controller/NftController.java
View file @
b09f74ea
...
...
@@ -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
,
...
...
joying-common/src/main/java/com/fzm/common/entity/vo/NftListVo.java
View file @
b09f74ea
...
...
@@ -18,6 +18,9 @@ public class NftListVo {
@ApiModelProperty
(
"名称"
)
private
String
name
;
@ApiModelProperty
(
"类别"
)
private
String
category
;
@ApiModelProperty
(
"主题,多个用逗号,隔开"
)
private
String
theme
;
...
...
joying-common/src/main/resources/mapper/NftMapper.xml
View file @
b09f74ea
...
...
@@ -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 != ''"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment