Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baihang-report
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
data-spider
baihang-report
Commits
86b0e9bb
Commit
86b0e9bb
authored
Dec 07, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量插入
parent
ab0bc5dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+8
-2
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
86b0e9bb
...
@@ -72,7 +72,7 @@ public class BaiHangFileReportService {
...
@@ -72,7 +72,7 @@ public class BaiHangFileReportService {
private
static
final
String
HOST_PATH
=
"/home/quant_group/reportFile/"
;
private
static
final
String
HOST_PATH
=
"/home/quant_group/reportFile/"
;
// private static final String HOST_PATH = "C:\\Users\\musterHunter\\Desktop\\TEST_REPORT\\";
// private static final String HOST_PATH = "C:\\Users\\musterHunter\\Desktop\\TEST_REPORT\\";
private
static
final
Integer
A1_INITIAL_CAPACITY
=
6
000
;
private
static
final
Integer
A1_INITIAL_CAPACITY
=
5
000
;
private
static
final
Integer
D2_INITIAL_CAPACITY
=
5000
;
private
static
final
Integer
D2_INITIAL_CAPACITY
=
5000
;
...
@@ -258,6 +258,7 @@ public class BaiHangFileReportService {
...
@@ -258,6 +258,7 @@ public class BaiHangFileReportService {
private
String
reportA1Refuse
(
String
starTime
,
String
endTime
){
private
String
reportA1Refuse
(
String
starTime
,
String
endTime
){
String
encryptFileName
=
null
;
String
encryptFileName
=
null
;
List
<
ApplyLoanInfoZhuDai
>
recordList
=
new
ArrayList
<>(
A1_INITIAL_CAPACITY
);
List
<
ApplyLoanInfoZhuDai
>
zhuDaiLogList
=
null
,
applyLoanInfos
=
null
;
List
<
ApplyLoanInfoZhuDai
>
zhuDaiLogList
=
null
,
applyLoanInfos
=
null
;
List
<
String
>
reportList
=
new
ArrayList
<>();
List
<
String
>
reportList
=
new
ArrayList
<>();
try
{
try
{
...
@@ -284,7 +285,12 @@ public class BaiHangFileReportService {
...
@@ -284,7 +285,12 @@ public class BaiHangFileReportService {
record
=
new
ApplyLoanInfoZhuDai
();
record
=
new
ApplyLoanInfoZhuDai
();
BeanUtils
.
copyProperties
(
applyLoanInfo
,
record
);
BeanUtils
.
copyProperties
(
applyLoanInfo
,
record
);
record
.
setRecordId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
record
.
setRecordId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
applyLoanInfoZhuDaiMapper
.
saveApplyLoanInfoZhuDaiLog
(
record
);
recordList
.
add
(
record
);
if
(
recordList
.
size
()
>=
A1_INITIAL_CAPACITY
)
{
saveApplyLoanInfoZhuDai
(
recordList
,
starTime
,
endTime
);
clear
(
recordList
);
recordList
=
new
ArrayList
<>(
A1_INITIAL_CAPACITY
);
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送(A1Refuse)-贷款申请信息保存记录失败"
,
e
);
log
.
error
(
"量化派助贷TO百行报送(A1Refuse)-贷款申请信息保存记录失败"
,
e
);
}
}
...
...
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