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
0e238e12
Commit
0e238e12
authored
Jul 22, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改我的nft列表排序功能
parent
84788a56
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CollectionNftVo.java
...c/main/java/com/fzm/common/entity/vo/CollectionNftVo.java
+4
-0
NftServiceImpl.java
...main/java/com/fzm/common/service/impl/NftServiceImpl.java
+1
-1
No files found.
joying-common/src/main/java/com/fzm/common/entity/vo/CollectionNftVo.java
View file @
0e238e12
...
...
@@ -23,6 +23,9 @@ public class CollectionNftVo {
@ApiModelProperty
(
"名称"
)
private
String
name
;
@ApiModelProperty
(
"封面"
)
private
String
cover
;
@ApiModelProperty
(
"主题,多个用逗号,隔开"
)
private
String
theme
;
...
...
@@ -35,5 +38,6 @@ public class CollectionNftVo {
this
.
nftId
=
nft
.
getNftId
();
this
.
category
=
category
.
getCategoryName
();
this
.
name
=
nft
.
getName
();
this
.
cover
=
nft
.
getCover
();
}
}
joying-common/src/main/java/com/fzm/common/service/impl/NftServiceImpl.java
View file @
0e238e12
...
...
@@ -258,7 +258,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
if
(
categoryId
!=
null
)
{
queryWrapper
.
eq
(
"category_id"
,
categoryId
);
}
queryWrapper
.
orderByDesc
(
"
is_top"
,
"
publish_time"
);
queryWrapper
.
orderByDesc
(
"publish_time"
);
return
nftMapper
.
selectList
(
queryWrapper
);
}
...
...
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