Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
windows
Project
Project
Details
Activity
Releases
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
zhanhai
windows
Commits
73e78749
Commit
73e78749
authored
Nov 23, 2023
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结清默认结清账单
parent
3d57f045
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
19 deletions
+8
-19
BackedCommand.java
src/main/java/com/jqtx/windows/command/BackedCommand.java
+4
-10
BackedBurdenJob.java
src/main/java/com/jqtx/windows/job/BackedBurdenJob.java
+4
-9
No files found.
src/main/java/com/jqtx/windows/command/BackedCommand.java
View file @
73e78749
...
@@ -103,16 +103,10 @@ public class BackedCommand extends AbstractCommand {
...
@@ -103,16 +103,10 @@ public class BackedCommand extends AbstractCommand {
planList
=
loanPlanComponent
.
getByLoan
(
loanNo
);
planList
=
loanPlanComponent
.
getByLoan
(
loanNo
);
LoanModel
loanModel
=
loanComponent
.
getByLoanNo
(
loanNo
);
LoanModel
loanModel
=
loanComponent
.
getByLoanNo
(
loanNo
);
//存在还款中计划改为还款中
List
<
LoanPlanModel
>
overduedList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
OVERDUED
.
getCode
()).
collect
(
Collectors
.
toList
());
List
<
LoanPlanModel
>
backingList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
BACKING
.
getCode
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
overduedList
))
{
if
(
CollectionUtils
.
isEmpty
(
backingList
))
{
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
OVERDUED
.
getCode
());
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
}
else
{
//存在还款中计划改为还款中
List
<
LoanPlanModel
>
backingList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
SETTLED
.
getCode
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
backingList
))
{
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
}
}
}
if
(
IsSettleEnum
.
ONE
.
getCode
().
equals
(
backedRequest
.
getIsSettle
()))
{
if
(
IsSettleEnum
.
ONE
.
getCode
().
equals
(
backedRequest
.
getIsSettle
()))
{
loanModel
.
setLoanStatus
(
DebtPlanStatusEnum
.
SETTLED
.
getCode
());
loanModel
.
setLoanStatus
(
DebtPlanStatusEnum
.
SETTLED
.
getCode
());
...
...
src/main/java/com/jqtx/windows/job/BackedBurdenJob.java
View file @
73e78749
...
@@ -218,15 +218,10 @@ public class BackedBurdenJob {
...
@@ -218,15 +218,10 @@ public class BackedBurdenJob {
private
void
upWindowsLoan
(
LoanModel
loanModel
)
{
private
void
upWindowsLoan
(
LoanModel
loanModel
)
{
List
<
LoanPlanModel
>
planList
=
loanPlanComponent
.
getByLoan
(
loanModel
.
getLoanNo
());
List
<
LoanPlanModel
>
planList
=
loanPlanComponent
.
getByLoan
(
loanModel
.
getLoanNo
());
List
<
LoanPlanModel
>
overduedList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
OVERDUED
.
getCode
()).
collect
(
Collectors
.
toList
());
//存在还款中计划改为还款中
if
(
CollectionUtils
.
isNotEmpty
(
overduedList
))
{
List
<
LoanPlanModel
>
backingList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
BACKING
.
getCode
()).
collect
(
Collectors
.
toList
());
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
OVERDUED
.
getCode
());
if
(
CollectionUtils
.
isEmpty
(
backingList
))
{
}
else
{
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
//存在还款中计划改为还款中
List
<
LoanPlanModel
>
backingList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
BACKING
.
getCode
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isNotEmpty
(
backingList
))
{
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
}
}
}
//修改 windows_loan 还款状态
//修改 windows_loan 还款状态
loanComponent
.
updateByLoanNo
(
loanModel
);
loanComponent
.
updateByLoanNo
(
loanModel
);
...
...
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