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
2832dc62
Commit
2832dc62
authored
Dec 08, 2021
by
陈宏杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
计数不一致
parent
0d8126ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
BaiHangFileReportService.java
...roup/report/service/baihang/BaiHangFileReportService.java
+12
-13
No files found.
src/main/java/cn/quantgroup/report/service/baihang/BaiHangFileReportService.java
View file @
2832dc62
...
...
@@ -281,7 +281,6 @@ public class BaiHangFileReportService {
reqId_log
=
applyLoanInfo
.
getReqID
();
zhuDaiLogList
=
applyLoanInfoZhuDaiMapper
.
findByApplyId
(
applyLoanInfo
.
getApplyId
());
if
(
CollectionUtils
.
isEmpty
(
zhuDaiLogList
))
{
try
{
record
=
new
ApplyLoanInfoZhuDai
();
BeanUtils
.
copyProperties
(
applyLoanInfo
,
record
);
record
.
setRecordId
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
...
...
@@ -291,9 +290,6 @@ public class BaiHangFileReportService {
clear
(
recordList
);
recordList
=
new
ArrayList
<>(
A1_INITIAL_CAPACITY
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送(A1Refuse)-贷款申请信息保存记录失败"
,
e
);
}
//邮箱有错误的就不传
if
(!
TuoMinUtils
.
checkEmail
(
applyLoanInfo
.
getEmailAddress
()))
{
applyLoanInfo
.
setEmailAddress
(
null
);
...
...
@@ -310,6 +306,9 @@ public class BaiHangFileReportService {
log
.
error
(
"量化派助贷TO百行报送(A1Refuse)-贷款申请信息异常, reqId_log: {} "
,
reqId_log
,
e
);
}
}
if
(!
CollectionUtils
.
isEmpty
(
recordList
)
&&
recordList
.
size
()
>
0
)
{
saveApplyLoanInfoZhuDai
(
recordList
,
starTime
,
endTime
);
}
File
file
=
new
File
(
HOST_PATH
+
"量子数科科技有限公司_A1Re_"
+
fileNameReplaceAll
(
starTime
.
split
(
"T"
)[
0
])+
"_"
+
fileNameReplaceAll
(
endTime
.
split
(
"T"
)[
0
])+
"_"
+
String
.
format
(
"%06d"
,
new
Random
().
nextInt
(
999999
))+
".txt"
);
FileUtils
.
writeLines
(
file
,
reportList
);
if
(
reportList
.
size
()<=
1
)
{
...
...
@@ -321,7 +320,7 @@ public class BaiHangFileReportService {
}
catch
(
Exception
e
)
{
log
.
error
(
"量化派助贷TO百行报送(A1Refuse)-异常"
,
e
);
}
finally
{
clear
(
applyLoanInfos
,
reportList
);
clear
(
applyLoanInfos
,
reportList
,
recordList
);
}
return
encryptFileName
;
}
...
...
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