Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
450ccc9f
Commit
450ccc9f
authored
Nov 15, 2019
by
杨锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
针对yyyy-MM-dd查询,特殊处理。
parent
ff4ba82d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ModifyPhoneNoServiceImpl.java
...roup/xyqb/service/user/impl/ModifyPhoneNoServiceImpl.java
+2
-2
DateUtils.java
src/main/java/cn/quantgroup/xyqb/util/DateUtils.java
+1
-0
No files found.
src/main/java/cn/quantgroup/xyqb/service/user/impl/ModifyPhoneNoServiceImpl.java
View file @
450ccc9f
...
@@ -145,10 +145,10 @@ public class ModifyPhoneNoServiceImpl implements IModifyPhoneNoService {
...
@@ -145,10 +145,10 @@ public class ModifyPhoneNoServiceImpl implements IModifyPhoneNoService {
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
"prevPhoneNo"
),
modifyPhoneNoQueryReq
.
getPhoneNo
()));
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
"prevPhoneNo"
),
modifyPhoneNoQueryReq
.
getPhoneNo
()));
}
}
if
(
StringUtils
.
isNotBlank
(
modifyPhoneNoQueryReq
.
getStartAt
()))
{
if
(
StringUtils
.
isNotBlank
(
modifyPhoneNoQueryReq
.
getStartAt
()))
{
list
.
add
(
criteriaBuilder
.
greaterThanOrEqualTo
(
root
.
get
(
"createdAt"
),
DateUtils
.
strToDate
(
modifyPhoneNoQueryReq
.
getStartAt
()
,
DateUtils
.
YMD
_FORMAT
)));
list
.
add
(
criteriaBuilder
.
greaterThanOrEqualTo
(
root
.
get
(
"createdAt"
),
DateUtils
.
strToDate
(
modifyPhoneNoQueryReq
.
getStartAt
()
+
" 00:00:00"
,
DateUtils
.
YMD_HMS
_FORMAT
)));
}
}
if
(
StringUtils
.
isNotBlank
(
modifyPhoneNoQueryReq
.
getEndAt
()))
{
if
(
StringUtils
.
isNotBlank
(
modifyPhoneNoQueryReq
.
getEndAt
()))
{
list
.
add
(
criteriaBuilder
.
lessThanOrEqualTo
(
root
.
get
(
"createdAt"
),
DateUtils
.
strToDate
(
modifyPhoneNoQueryReq
.
getEndAt
()
,
DateUtils
.
YMD
_FORMAT
)));
list
.
add
(
criteriaBuilder
.
lessThanOrEqualTo
(
root
.
get
(
"createdAt"
),
DateUtils
.
strToDate
(
modifyPhoneNoQueryReq
.
getEndAt
()
+
" 23:59:59"
,
DateUtils
.
YMD_HMS
_FORMAT
)));
}
}
if
(
modifyPhoneNoQueryReq
.
getApplyStatus
()
!=
null
)
{
if
(
modifyPhoneNoQueryReq
.
getApplyStatus
()
!=
null
)
{
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
"applyStatus"
),
modifyPhoneNoQueryReq
.
getApplyStatus
().
ordinal
()));
list
.
add
(
criteriaBuilder
.
equal
(
root
.
get
(
"applyStatus"
),
modifyPhoneNoQueryReq
.
getApplyStatus
().
ordinal
()));
...
...
src/main/java/cn/quantgroup/xyqb/util/DateUtils.java
View file @
450ccc9f
...
@@ -20,6 +20,7 @@ import java.util.Date;
...
@@ -20,6 +20,7 @@ import java.util.Date;
public
class
DateUtils
{
public
class
DateUtils
{
public
static
final
String
YMD_FORMAT
=
"yyyy-MM-dd"
;
public
static
final
String
YMD_FORMAT
=
"yyyy-MM-dd"
;
public
static
final
String
YMD_HMS_FORMAT
=
"yyyy-MM-dd HH:mm:ss"
;
/**
/**
* @param dateTimeStr
* @param dateTimeStr
...
...
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