Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
customer-service
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
QG
customer-service
Commits
bb26bdcf
Commit
bb26bdcf
authored
Feb 14, 2022
by
王业雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
61cf40b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
VccServiceImpl.java
...a/cn/quantgroup/customer/service/impl/VccServiceImpl.java
+13
-6
No files found.
src/main/java/cn/quantgroup/customer/service/impl/VccServiceImpl.java
View file @
bb26bdcf
...
@@ -276,13 +276,9 @@ public class VccServiceImpl implements IVccService {
...
@@ -276,13 +276,9 @@ public class VccServiceImpl implements IVccService {
}
}
if
(
StringUtils
.
isNotBlank
(
query
.
getPhone
())){
if
(
StringUtils
.
isNotBlank
(
query
.
getPhone
())){
phone
=
query
.
getPhone
();
phone
=
query
.
getPhone
();
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
phone
.
eq
(
phone
));
}
if
(
StringUtils
.
isNotBlank
(
query
.
getOrderNo
())){
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
orderNo
.
eq
(
query
.
getOrderNo
()));
}
}
if
(
StringUtils
.
isNotBlank
(
query
.
getBillId
()
)){
if
(
StringUtils
.
isNotBlank
(
phone
)){
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
billIds
.
contains
(
query
.
getBillId
()
));
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
phone
.
eq
(
phone
));
}
}
if
(
query
.
getApprovalStatus
()
!=
null
){
if
(
query
.
getApprovalStatus
()
!=
null
){
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
approvalStatus
.
eq
(
query
.
getApprovalStatus
()));
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
approvalStatus
.
eq
(
query
.
getApprovalStatus
()));
...
@@ -290,6 +286,17 @@ public class VccServiceImpl implements IVccService {
...
@@ -290,6 +286,17 @@ public class VccServiceImpl implements IVccService {
if
(
query
.
getRepayType
()
!=
null
){
if
(
query
.
getRepayType
()
!=
null
){
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
repayType
.
eq
(
query
.
getRepayType
()));
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
repayType
.
eq
(
query
.
getRepayType
()));
}
}
if
(
StringUtils
.
isNotBlank
(
query
.
getOrderNo
())){
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
uniqueId
.
eq
(
query
.
getOrderNo
()));
}
if
(
StringUtils
.
isNotBlank
(
query
.
getBillId
())){
if
(
1
==
query
.
getRepayType
()){
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
bills
.
contains
(
query
.
getBillId
()));
}
else
{
booleanExpression
=
booleanExpression
.
and
(
QOfflineRepaySubmitRecord
.
offlineRepaySubmitRecord
.
uniqueId
.
eq
(
query
.
getBillId
()));
}
}
long
count
=
offlineRepaySubmitRecordRepo
.
count
(
booleanExpression
);
long
count
=
offlineRepaySubmitRecordRepo
.
count
(
booleanExpression
);
int
offset
=
(
query
.
getPageIndex
()
-
1
)
*
query
.
getPageSize
();
int
offset
=
(
query
.
getPageIndex
()
-
1
)
*
query
.
getPageSize
();
Page
<
OfflineRepaySubmitRecord
>
plantPage
=
offlineRepaySubmitRecordRepo
.
findAll
(
booleanExpression
,
new
PageRequest
(
offset
,
query
.
getPageSize
()));
Page
<
OfflineRepaySubmitRecord
>
plantPage
=
offlineRepaySubmitRecordRepo
.
findAll
(
booleanExpression
,
new
PageRequest
(
offset
,
query
.
getPageSize
()));
...
...
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