Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jty-wsxt
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
aye
jty-wsxt
Commits
37bba362
Commit
37bba362
authored
Jun 22, 2019
by
aye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
210a9bae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
service-paper/src/main/java/com/jty/wsxt/application/service/impl/PaperServiceImpl.java
+4
-0
service-paper/src/main/java/com/jty/wsxt/interfaces/dto/PaperSearchForCreatorDto.java
+1
-0
No files found.
service-paper/src/main/java/com/jty/wsxt/application/service/impl/PaperServiceImpl.java
View file @
37bba362
...
@@ -79,6 +79,10 @@ class PaperDsl {
...
@@ -79,6 +79,10 @@ class PaperDsl {
List
<
Predicate
>
predicate
=
new
ArrayList
<>();
List
<
Predicate
>
predicate
=
new
ArrayList
<>();
predicate
.
add
(
cb
.
equal
(
root
.
get
(
"creatorId"
),
searchDto
.
getCreatorId
()));
predicate
.
add
(
cb
.
equal
(
root
.
get
(
"creatorId"
),
searchDto
.
getCreatorId
()));
if
(
searchDto
.
getSubjectId
()
!=
null
){
predicate
.
add
(
cb
.
equal
(
root
.
get
(
"subjectId"
),
searchDto
.
getSubjectId
()));
}
if
(
searchDto
.
getUploadingStartTime
()
!=
null
)
{
if
(
searchDto
.
getUploadingStartTime
()
!=
null
)
{
predicate
.
add
(
cb
.
greaterThanOrEqualTo
(
root
.
get
(
"createTime"
),
searchDto
.
getUploadingStartTime
()));
predicate
.
add
(
cb
.
greaterThanOrEqualTo
(
root
.
get
(
"createTime"
),
searchDto
.
getUploadingStartTime
()));
}
}
...
...
service-paper/src/main/java/com/jty/wsxt/interfaces/dto/PaperSearchForCreatorDto.java
View file @
37bba362
...
@@ -13,6 +13,7 @@ import java.time.LocalDateTime;
...
@@ -13,6 +13,7 @@ import java.time.LocalDateTime;
@Data
@Data
public
class
PaperSearchForCreatorDto
extends
SuperDto
{
public
class
PaperSearchForCreatorDto
extends
SuperDto
{
private
Integer
creatorId
;
private
Integer
creatorId
;
private
Integer
subjectId
;
private
LocalDateTime
uploadingStartTime
;
private
LocalDateTime
uploadingStartTime
;
private
LocalDateTime
uploadingEndTime
;
private
LocalDateTime
uploadingEndTime
;
}
}
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