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
41929c6c
Commit
41929c6c
authored
Dec 07, 2023
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
浙农结清问题
parent
0a903dfd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
BackedCommand.java
src/main/java/com/jqtx/windows/command/BackedCommand.java
+2
-4
LoanPlanComponent.java
...in/java/com/jqtx/windows/component/LoanPlanComponent.java
+2
-0
LoanPlanComponentImpl.java
...om/jqtx/windows/component/impl/LoanPlanComponentImpl.java
+15
-5
BackedBurdenJob.java
src/main/java/com/jqtx/windows/job/BackedBurdenJob.java
+2
-4
No files found.
src/main/java/com/jqtx/windows/command/BackedCommand.java
View file @
41929c6c
...
@@ -100,12 +100,10 @@ public class BackedCommand extends AbstractCommand {
...
@@ -100,12 +100,10 @@ public class BackedCommand extends AbstractCommand {
}
}
}
}
}
}
planList
=
loanPlanComponent
.
getByLoan
(
loanNo
);
LoanModel
loanModel
=
loanComponent
.
getByLoanNo
(
loanNo
);
LoanModel
loanModel
=
loanComponent
.
getByLoanNo
(
loanNo
);
//存在还款中计划改为还款中
//存在还款中计划改为还款中
List
<
LoanPlanModel
>
backingList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
BACKING
.
getCode
()).
collect
(
Collectors
.
toList
());
long
l
=
loanPlanComponent
.
countLoanPlanByStatus
(
loanModel
.
getLoanNo
());
if
(
CollectionUtils
.
isEmpty
(
backingList
)
)
{
if
(
Long
.
valueOf
(
l
).
intValue
()
==
0
)
{
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
}
}
if
(
IsSettleEnum
.
ONE
.
getCode
().
equals
(
backedRequest
.
getIsSettle
()))
{
if
(
IsSettleEnum
.
ONE
.
getCode
().
equals
(
backedRequest
.
getIsSettle
()))
{
...
...
src/main/java/com/jqtx/windows/component/LoanPlanComponent.java
View file @
41929c6c
...
@@ -15,4 +15,6 @@ public interface LoanPlanComponent {
...
@@ -15,4 +15,6 @@ public interface LoanPlanComponent {
int
updateByLoanPlanModel
(
LoanPlanModel
loanPlanModel
);
int
updateByLoanPlanModel
(
LoanPlanModel
loanPlanModel
);
LoanPlanModel
getPlanNoByLoan
(
String
loanNo
,
String
planIndex
);
LoanPlanModel
getPlanNoByLoan
(
String
loanNo
,
String
planIndex
);
long
countLoanPlanByStatus
(
String
loanNo
);
}
}
src/main/java/com/jqtx/windows/component/impl/LoanPlanComponentImpl.java
View file @
41929c6c
...
@@ -3,13 +3,10 @@ package com.jqtx.windows.component.impl;
...
@@ -3,13 +3,10 @@ package com.jqtx.windows.component.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
com.jqtx.windows.component.LoanPlanComponent
;
import
com.jqtx.windows.component.LoanPlanComponent
;
import
com.jqtx.windows.component.model.LoanPlanModel
;
import
com.jqtx.windows.component.model.LoanPlanModel
;
import
com.jqtx.windows.component.model.RepayModel
;
import
com.jqtx.windows.infrastructure.feign.enums.DebtInfoStatusEnum
;
import
com.jqtx.windows.repository.entity.WindowsLoan
;
import
com.jqtx.windows.repository.entity.WindowsLoanExample
;
import
com.jqtx.windows.repository.entity.WindowsPlan
;
import
com.jqtx.windows.repository.entity.WindowsPlan
;
import
com.jqtx.windows.repository.entity.WindowsPlanExample
;
import
com.jqtx.windows.repository.entity.WindowsPlanExample
;
import
com.jqtx.windows.repository.mapper.WindowsPlanMapper
;
import
com.jqtx.windows.repository.mapper.WindowsPlanMapper
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -48,7 +45,7 @@ public class LoanPlanComponentImpl implements LoanPlanComponent {
...
@@ -48,7 +45,7 @@ public class LoanPlanComponentImpl implements LoanPlanComponent {
}
}
@Override
@Override
public
LoanPlanModel
getPlanNoByLoan
(
String
loanNo
,
String
planIndex
)
{
public
LoanPlanModel
getPlanNoByLoan
(
String
loanNo
,
String
planIndex
)
{
WindowsPlanExample
example
=
new
WindowsPlanExample
();
WindowsPlanExample
example
=
new
WindowsPlanExample
();
WindowsPlanExample
.
Criteria
criteria
=
example
.
createCriteria
();
WindowsPlanExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andLoanNoEqualTo
(
loanNo
);
criteria
.
andLoanNoEqualTo
(
loanNo
);
...
@@ -56,4 +53,17 @@ public class LoanPlanComponentImpl implements LoanPlanComponent {
...
@@ -56,4 +53,17 @@ public class LoanPlanComponentImpl implements LoanPlanComponent {
List
<
WindowsPlan
>
windowsPlans
=
windowsPlanMapper
.
selectByExample
(
example
);
List
<
WindowsPlan
>
windowsPlans
=
windowsPlanMapper
.
selectByExample
(
example
);
return
windowsPlans
.
stream
().
map
(
m
->
BeanUtil
.
toBean
(
m
,
LoanPlanModel
.
class
)).
findFirst
().
orElse
(
null
);
return
windowsPlans
.
stream
().
map
(
m
->
BeanUtil
.
toBean
(
m
,
LoanPlanModel
.
class
)).
findFirst
().
orElse
(
null
);
}
}
@Override
public
long
countLoanPlanByStatus
(
String
loanNo
)
{
WindowsPlanExample
example
=
new
WindowsPlanExample
();
WindowsPlanExample
.
Criteria
criteria
=
example
.
createCriteria
();
criteria
.
andLoanNoEqualTo
(
loanNo
);
criteria
.
andStatusEqualTo
(
DebtInfoStatusEnum
.
BACKING
.
getCode
());
long
backing
=
windowsPlanMapper
.
countByExample
(
example
);
criteria
.
andStatusEqualTo
(
DebtInfoStatusEnum
.
OVERDUED
.
getCode
());
long
overdued
=
windowsPlanMapper
.
countByExample
(
example
);
return
backing
+
overdued
;
}
}
}
src/main/java/com/jqtx/windows/job/BackedBurdenJob.java
View file @
41929c6c
...
@@ -237,10 +237,8 @@ public class BackedBurdenJob {
...
@@ -237,10 +237,8 @@ public class BackedBurdenJob {
}
}
private
void
upWindowsLoan
(
LoanModel
loanModel
)
{
private
void
upWindowsLoan
(
LoanModel
loanModel
)
{
List
<
LoanPlanModel
>
planList
=
loanPlanComponent
.
getByLoan
(
loanModel
.
getLoanNo
());
long
l
=
loanPlanComponent
.
countLoanPlanByStatus
(
loanModel
.
getLoanNo
());
//存在还款中计划改为还款中
if
(
Long
.
valueOf
(
l
).
intValue
()
==
0
)
{
List
<
LoanPlanModel
>
backingList
=
planList
.
stream
().
filter
(
i
->
i
.
getStatus
()
==
DebtPlanStatusEnum
.
BACKING
.
getCode
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtils
.
isEmpty
(
backingList
))
{
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
loanModel
.
setLoanStatus
(
DebtInfoStatusEnum
.
SETTLED
.
getCode
());
}
}
//修改 windows_loan 还款状态
//修改 windows_loan 还款状态
...
...
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