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
04150777
Commit
04150777
authored
May 15, 2024
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款对账文件
parent
98d1a363
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
BackedJob.java
src/main/java/com/jqtx/windows/job/BackedJob.java
+11
-9
No files found.
src/main/java/com/jqtx/windows/job/BackedJob.java
View file @
04150777
...
...
@@ -6,9 +6,11 @@ import cn.hutool.core.util.CharsetUtil;
import
cn.hutool.extra.ssh.Sftp
;
import
com.jqtx.infrastructure.oss.starter.config.OssUtils
;
import
com.jqtx.windows.common.config.SftpConfig
;
import
com.jqtx.windows.component.*
;
import
com.jqtx.windows.component.BackedDetailComponent
;
import
com.jqtx.windows.component.LoanPlanComponent
;
import
com.jqtx.windows.component.LoanRepayComponent
;
import
com.jqtx.windows.component.OverduedComponent
;
import
com.jqtx.windows.component.enums.LoanStatusEnum
;
import
com.jqtx.windows.component.impl.BackedBurdenComponentImpl
;
import
com.jqtx.windows.component.model.BackedDetailModel
;
import
com.jqtx.windows.component.model.BackedFileModel
;
import
com.jqtx.windows.component.model.LoanPlanModel
;
...
...
@@ -39,12 +41,6 @@ public class BackedJob {
@Autowired
private
LoanPlanComponent
loanPlanComponent
;
@Autowired
private
BackedBurdenComponentImpl
backedBurdenComponent
;
@Autowired
private
LoanComponent
loanComponent
;
@Autowired
private
LoanRepayComponent
loanRepayComponent
;
...
...
@@ -203,6 +199,12 @@ public class BackedJob {
return
parse
;
}
private
static
LocalDate
getLocalDate
(
String
time
)
{
DateTimeFormatter
dateTimeFormatter
=
DateTimeFormatter
.
ofPattern
(
"yyyyMMdd"
);
LocalDate
parse
=
LocalDate
.
parse
(
time
,
dateTimeFormatter
);
return
parse
;
}
/**
* @param model
...
...
@@ -214,7 +216,7 @@ public class BackedJob {
BackedDetailModel
debtBackedModel
=
new
BackedDetailModel
();
debtBackedModel
.
setBackedNo
(
refundNo
);
debtBackedModel
.
setPlanNo
(
getPlanNo
(
model
.
getLoanReqNo
(),
model
.
getRepayTerm
()));
debtBackedModel
.
setBackedDate
(
LocalDate
.
now
().
minusDays
(
1
));
debtBackedModel
.
setBackedDate
(
getLocalDate
(
model
.
getRepayDate
()
));
debtBackedModel
.
setBackedAmt
(
new
BigDecimal
(
model
.
getRepayAmount
()));
debtBackedModel
.
setBackedBen
(
new
BigDecimal
(
model
.
getRepayPrincipal
()));
debtBackedModel
.
setBackedXi
(
new
BigDecimal
(
model
.
getRepayInterest
()));
...
...
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