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
02548955
Commit
02548955
authored
1 year ago
by
LSL
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结清默认结清账单
parent
97e8f0cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
RedeemJob.java
src/main/java/com/jqtx/windows/job/RedeemJob.java
+18
-6
No files found.
src/main/java/com/jqtx/windows/job/RedeemJob.java
View file @
02548955
...
@@ -5,7 +5,9 @@ import cn.hutool.core.io.FileUtil;
...
@@ -5,7 +5,9 @@ import cn.hutool.core.io.FileUtil;
import
cn.hutool.core.util.CharsetUtil
;
import
cn.hutool.core.util.CharsetUtil
;
import
cn.hutool.extra.ssh.Sftp
;
import
cn.hutool.extra.ssh.Sftp
;
import
com.jqtx.infrastructure.oss.starter.config.OssUtils
;
import
com.jqtx.infrastructure.oss.starter.config.OssUtils
;
import
com.jqtx.windows.component.LoanPlanComponent
;
import
com.jqtx.windows.component.RedeemComponent
;
import
com.jqtx.windows.component.RedeemComponent
;
import
com.jqtx.windows.component.model.LoanPlanModel
;
import
com.jqtx.windows.component.model.RedeemModel
;
import
com.jqtx.windows.component.model.RedeemModel
;
import
com.xxl.job.core.context.XxlJobHelper
;
import
com.xxl.job.core.context.XxlJobHelper
;
import
com.xxl.job.core.handler.annotation.XxlJob
;
import
com.xxl.job.core.handler.annotation.XxlJob
;
...
@@ -21,9 +23,13 @@ import java.util.List;
...
@@ -21,9 +23,13 @@ import java.util.List;
@Component
@Component
@Slf4j
@Slf4j
public
class
RedeemJob
{
public
class
RedeemJob
{
@Autowired
@Autowired
private
OssUtils
ossUtils
;
private
OssUtils
ossUtils
;
@Autowired
private
LoanPlanComponent
loanPlanComponent
;
@Autowired
@Autowired
private
RedeemComponent
redeemComponent
;
private
RedeemComponent
redeemComponent
;
...
@@ -55,7 +61,7 @@ public class RedeemJob {
...
@@ -55,7 +61,7 @@ public class RedeemJob {
* @param jsonResult
* @param jsonResult
* @return
* @return
*/
*/
p
ublic
static
List
<
RedeemModel
>
getlist
(
String
jsonResult
)
{
p
rivate
List
<
RedeemModel
>
getlist
(
String
jsonResult
)
{
ArrayList
<
RedeemModel
>
list
=
new
ArrayList
<>();
ArrayList
<
RedeemModel
>
list
=
new
ArrayList
<>();
String
[]
split
=
jsonResult
.
split
(
"\n"
);
String
[]
split
=
jsonResult
.
split
(
"\n"
);
if
(
split
==
null
)
{
if
(
split
==
null
)
{
...
@@ -65,6 +71,7 @@ public class RedeemJob {
...
@@ -65,6 +71,7 @@ public class RedeemJob {
String
[]
split1
=
modelstr
.
split
(
"\\|"
);
String
[]
split1
=
modelstr
.
split
(
"\\|"
);
RedeemModel
model
=
new
RedeemModel
();
RedeemModel
model
=
new
RedeemModel
();
model
.
setLoanNo
(
split1
[
0
]);
model
.
setLoanNo
(
split1
[
0
]);
model
.
setPlanNo
(
getPlanNo
(
split1
[
0
],
split1
[
2
]));
model
.
setRedeemType
(
split1
[
1
]);
model
.
setRedeemType
(
split1
[
1
]);
model
.
setPlanIndex
(
split1
[
2
]);
model
.
setPlanIndex
(
split1
[
2
]);
model
.
setRaiseTime
(
split1
[
3
]);
model
.
setRaiseTime
(
split1
[
3
]);
...
@@ -79,11 +86,16 @@ public class RedeemJob {
...
@@ -79,11 +86,16 @@ public class RedeemJob {
return
list
;
return
list
;
}
}
public
static
void
main
(
String
[]
args
)
{
/**
* 获取planNo
String
ss
=
"BA11111111|1|1|2023-11-22|2023-10-22|8|73.00|0.00|2.04|75.04|\n"
;
*
* @param loanNo
List
<
RedeemModel
>
getlist
=
getlist
(
ss
);
* @param planIndex
* @return
*/
private
String
getPlanNo
(
String
loanNo
,
String
planIndex
)
{
LoanPlanModel
planModel
=
loanPlanComponent
.
getPlanNoByLoan
(
loanNo
,
planIndex
);
return
planModel
.
getPlanNo
();
}
}
}
}
This diff is collapsed.
Click to expand it.
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