Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antai-sport
antai-sport-http-server
Commits
78af6900
Commit
78af6900
authored
Apr 21, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常赛列表
parent
49ca7c02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
SimpleMatchListRequestDTO.java
...i/business/simplematch/dto/SimpleMatchListRequestDTO.java
+6
-2
SimpleMatchBusinessMapper.xml
...esources/mapper/simplematch/SimpleMatchBusinessMapper.xml
+9
-0
No files found.
management-api/src/main/java/com/antai/sport/http/server/management/api/business/simplematch/dto/SimpleMatchListRequestDTO.java
View file @
78af6900
package
com
.
antai
.
sport
.
http
.
server
.
management
.
api
.
business
.
simplematch
.
dto
;
package
com
.
antai
.
sport
.
http
.
server
.
management
.
api
.
business
.
simplematch
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
@Data
@Data
...
@@ -16,7 +18,9 @@ public class SimpleMatchListRequestDTO {
...
@@ -16,7 +18,9 @@ public class SimpleMatchListRequestDTO {
@ApiModelProperty
(
"比赛名称"
)
@ApiModelProperty
(
"比赛名称"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
"比赛开始时间查询:开始时间"
)
@ApiModelProperty
(
"比赛开始时间查询:开始时间"
)
private
LocalDateTime
beginDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
LocalDate
beginDate
;
@ApiModelProperty
(
"比赛开始时间查询:结束时间"
)
@ApiModelProperty
(
"比赛开始时间查询:结束时间"
)
private
LocalDateTime
endDate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
,
timezone
=
"GMT+8"
)
private
LocalDate
endDate
;
}
}
management-api/src/main/resources/mapper/simplematch/SimpleMatchBusinessMapper.xml
View file @
78af6900
...
@@ -7,5 +7,14 @@
...
@@ -7,5 +7,14 @@
left join map t2 on t1.map = t2.map_key
left join map t2 on t1.map = t2.map_key
left join map_path t3 on t1.path = t3.path_key
left join map_path t3 on t1.path = t3.path_key
where t1.deleted = 0
where t1.deleted = 0
<if
test=
"param.name != null and param.name != ''"
>
and t1.name like concat('%',#{param.name},'%')
</if>
<if
test=
"param.beginDate != null"
>
and t1.start_time
>
= #{param.beginDate}
</if>
<if
test=
"param.endDate != null"
>
and t1.start_time
<
date_add(#{param.endDate}, interval 1 day)
</if>
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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