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
6d09c43b
Commit
6d09c43b
authored
Jul 15, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改nft置顶 下架的逻辑
parent
a9a3e640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
NftServiceImpl.java
...main/java/com/fzm/common/service/impl/NftServiceImpl.java
+6
-2
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/NftServiceImpl.java
View file @
6d09c43b
...
...
@@ -242,9 +242,12 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
@Override
public
Boolean
top
(
Integer
id
)
{
Nft
nft
=
new
Nft
();
Nft
nft
=
getById
(
id
);
// 未上架的nft不能置顶
if
(
SystemConstant
.
BOOLEAN_DATA_FALSE
.
equals
(
nft
.
getStatus
()))
{
throw
GlobalException
.
newException
(
ResultCode
.
FAILED
,
"未上架的nft不能置顶"
);
}
nft
.
setIsTop
(
SystemConstant
.
BOOLEAN_DATA_TRUE
);
nft
.
setId
(
id
);
return
updateById
(
nft
);
}
...
...
@@ -268,6 +271,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
public
Boolean
offShelf
(
Integer
id
)
{
Nft
nft
=
new
Nft
();
nft
.
setStatus
(
SystemConstant
.
BOOLEAN_DATA_FALSE
);
nft
.
setIsTop
(
SystemConstant
.
BOOLEAN_DATA_FALSE
);
nft
.
setId
(
id
);
return
updateById
(
nft
);
}
...
...
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