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
5fc58839
Commit
5fc58839
authored
Dec 19, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化投稿列表查询
parent
377770c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
cloud-site-api/src/main/java/com/yizhi/site/application/vo/site/PublicationParamVO.java
+6
-0
cloud-site-service/src/main/resources/mapper/PublicationMapper.xml
+3
-0
No files found.
cloud-site-api/src/main/java/com/yizhi/site/application/vo/site/PublicationParamVO.java
View file @
5fc58839
package
com
.
yizhi
.
site
.
application
.
vo
.
site
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -22,6 +23,9 @@ public class PublicationParamVO extends ContextVO {
@ApiModelProperty
(
value
=
"编号"
)
private
String
number
;
@ApiModelProperty
(
"作者"
)
private
String
author
;
@ApiModelProperty
(
value
=
"当前页"
)
private
Integer
pageNo
;
...
...
@@ -35,9 +39,11 @@ public class PublicationParamVO extends ContextVO {
private
Long
level
;
@ApiModelProperty
(
value
=
"发布时间的起点"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
start
;
@ApiModelProperty
(
value
=
"发布时间的终点"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
end
;
private
Long
siteId
;
...
...
cloud-site-service/src/main/resources/mapper/PublicationMapper.xml
View file @
5fc58839
...
...
@@ -55,6 +55,9 @@
<if
test=
"number != null"
>
and a.number = #{number}
</if>
<if
test=
"author != null"
>
and a.author = #{author}
</if>
<if
test=
"level != null and level == 1"
>
and a.type_one=#{typeId}
</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