Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
3cfac7d1
Commit
3cfac7d1
authored
Dec 18, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投稿列表查询
parent
0bf5d79e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/PublicationServiceImpl.java
+6
-1
cloud-site-service/src/main/resources/mapper/PublicationMapper.xml
+1
-1
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/PublicationServiceImpl.java
View file @
3cfac7d1
...
@@ -91,7 +91,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
...
@@ -91,7 +91,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
if
(
vo
.
getSiteId
()==
null
)
{
vo
.
setSiteId
(
ContextHolder
.
get
().
getSiteId
());
}
Page
<
Publication
>
page
=
new
Page
<
Publication
>(
vo
.
getPageNo
(),
vo
.
getPageSize
());
Page
<
Publication
>
page
=
new
Page
<
Publication
>(
vo
.
getPageNo
(),
vo
.
getPageSize
());
List
<
Publication
>
list
=
null
;
List
<
Publication
>
list
=
null
;
if
(
vo
.
getTypeId
()!=
null
)
{
if
(
vo
.
getTypeId
()!=
null
)
{
...
@@ -438,6 +440,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
...
@@ -438,6 +440,9 @@ public class PublicationServiceImpl extends ServiceImpl<PublicationMapper, Publi
}
}
}
}
}
}
if
(
publicationParamVO
.
getSiteId
()==
null
)
{
publicationParamVO
.
setSiteId
(
ContextHolder
.
get
().
getSiteId
());
}
List
<
Publication
>
list
=
publicationMapper
.
publicationFirstList
(
publicationParamVO
,
page
);
List
<
Publication
>
list
=
publicationMapper
.
publicationFirstList
(
publicationParamVO
,
page
);
if
(
list
.
size
()
>
0
&&
list
!=
null
)
{
if
(
list
.
size
()
>
0
&&
list
!=
null
)
{
...
...
cloud-site-service/src/main/resources/mapper/PublicationMapper.xml
View file @
3cfac7d1
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<select
id=
"publicationFirstList"
resultType=
"com.yizhi.site.application.domain.Publication"
>
<select
id=
"publicationFirstList"
resultType=
"com.yizhi.site.application.domain.Publication"
>
select a.* from publication a where 1=1 and a.site_id=#{siteId}
and a.type_one=#{typeId}
select a.* from publication a where 1=1 and a.site_id=#{siteId}
<if
test=
"fileName != null and fileName != ''"
>
<if
test=
"fileName != null and fileName != ''"
>
and a.file_name like CONCAT('%', '${fileName}', '%' )
and a.file_name like CONCAT('%', '${fileName}', '%' )
</if>
</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