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
c98ec05f
Commit
c98ec05f
authored
Jul 14, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nft列表里踢出未发行成功的记录
parent
bf6b5664
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
NftServiceImpl.java
...main/java/com/fzm/common/service/impl/NftServiceImpl.java
+1
-0
NftMapper.xml
joying-common/src/main/resources/mapper/NftMapper.xml
+3
-3
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/NftServiceImpl.java
View file @
c98ec05f
...
...
@@ -198,6 +198,7 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
public
List
<
Nft
>
listCurrent
(
Integer
categoryId
,
Integer
userId
)
{
QueryWrapper
<
Nft
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
eq
(
"user_id"
,
userId
);
queryWrapper
.
ne
(
"nft_hash"
,
""
);
if
(
categoryId
!=
null
)
{
queryWrapper
.
eq
(
"category_id"
,
categoryId
);
}
...
...
joying-common/src/main/resources/mapper/NftMapper.xml
View file @
c98ec05f
...
...
@@ -4,11 +4,11 @@
<select
id=
"list"
resultType=
"com.fzm.common.entity.Nft"
>
select * from tb_nft
where status = 1
where status = 1
and nft_hash != ''
<if
test=
"categoryId != null and categoryId > 0"
>
and category_id=#{categoryId}
</if>
order by is_top desc ,
update_dat
e desc
order by is_top desc ,
publish_tim
e desc
limit #{pageNum},#{pageSize}
</select>
...
...
@@ -40,7 +40,7 @@
tb_nft n
LEFT JOIN tb_user u ON n.user_id = u.id
WHERE
1 = 1
nft_hash != ''
<if
test=
"name != null and name != ''"
>
and n.name like concat ('%',#{name},'%')
</if>
...
...
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