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
0c0213f7
Commit
0c0213f7
authored
Nov 06, 2019
by
郝彦辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非联合贷-实时数据报送sql修改
parent
0c7340ab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
11 deletions
+43
-11
ExZhuDaiBaiHangReSendController.java
.../controller/external/ExZhuDaiBaiHangReSendController.java
+3
-3
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+40
-8
No files found.
src/main/java/cn/quantgroup/report/controller/external/ExZhuDaiBaiHangReSendController.java
View file @
0c0213f7
...
@@ -168,7 +168,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -168,7 +168,7 @@ public class ExZhuDaiBaiHangReSendController {
@RequestMapping
(
"/manual/mainApplySend"
)
@RequestMapping
(
"/manual/mainApplySend"
)
public
GlobalResponse
mainApplySend
(){
public
GlobalResponse
mainApplySend
(){
try
{
try
{
baiHangZhuDaiService
.
sendHandApplyToBaiHang
();
baiHangZhuDaiService
.
sendHandApplyToBaiHang
(
true
,
null
);
return
GlobalResponse
.
generate
(
"百行征信助贷模式手动报送D2数据成功"
);
return
GlobalResponse
.
generate
(
"百行征信助贷模式手动报送D2数据成功"
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
"百行征信助贷模式手动报送申请异常"
,
e
);
log
.
error
(
"百行征信助贷模式手动报送申请异常"
,
e
);
...
@@ -186,7 +186,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -186,7 +186,7 @@ public class ExZhuDaiBaiHangReSendController {
@RequestMapping
(
"/manual/mainLoanInfoSend"
)
@RequestMapping
(
"/manual/mainLoanInfoSend"
)
public
GlobalResponse
mainLoanInfoSend
(){
public
GlobalResponse
mainLoanInfoSend
(){
try
{
try
{
baiHangZhuDaiService
.
sendHandLoaInfoReportToBaiHang
();
baiHangZhuDaiService
.
sendHandLoaInfoReportToBaiHang
(
true
,
null
);
return
GlobalResponse
.
generate
(
"百行征信助贷模式手动报送D2数据成功"
);
return
GlobalResponse
.
generate
(
"百行征信助贷模式手动报送D2数据成功"
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
"百行征信助贷模式报送放款异常"
,
e
);
log
.
error
(
"百行征信助贷模式报送放款异常"
,
e
);
...
@@ -204,7 +204,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -204,7 +204,7 @@ public class ExZhuDaiBaiHangReSendController {
@RequestMapping
(
"/manual/mainRepaymentLoanInfo"
)
@RequestMapping
(
"/manual/mainRepaymentLoanInfo"
)
public
GlobalResponse
mainRepaymentLoanInfo
(){
public
GlobalResponse
mainRepaymentLoanInfo
(){
try
{
try
{
baiHangZhuDaiService
.
sendHandRepaymentReportToBaiHang1
();
baiHangZhuDaiService
.
sendHandRepaymentReportToBaiHang1
(
true
,
null
);
return
GlobalResponse
.
generate
(
"百行征信助贷模式手动报送D3数据成功"
);
return
GlobalResponse
.
generate
(
"百行征信助贷模式手动报送D3数据成功"
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
error
(
"百行征信助贷模式报送还款异常"
,
e
);
log
.
error
(
"百行征信助贷模式报送还款异常"
,
e
);
...
...
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
0c0213f7
...
@@ -358,10 +358,21 @@ public class BaiHangZhuDaiService {
...
@@ -358,10 +358,21 @@ public class BaiHangZhuDaiService {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.29 <br/>
* 创建时间: 2019.10.29 <br/>
*/
*/
public
void
sendHandApplyToBaiHang
()
throws
Exception
{
public
void
sendHandApplyToBaiHang
(
boolean
isReadFile
,
List
<
String
>
paramJsonStr
)
throws
Exception
{
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
List
<
String
>
handApplys
=
FileUtils
.
readLines
(
new
File
(
baihangHandA1DataUrl
),
"utf-8"
);
List
<
String
>
handApplys
=
null
;
log
.
info
(
"百行征信助贷模式报送贷款申请数据, {}"
,
JSON
.
toJSONString
(
handApplys
));
if
(
isReadFile
){
handApplys
=
FileUtils
.
readLines
(
new
File
(
baihangHandA1DataUrl
),
"utf-8"
);
}
else
{
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
log
.
warn
(
"百行征信助贷模式手动报送贷款申请错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
return
;
}
else
{
handApplys
=
paramJsonStr
;
}
}
log
.
info
(
"百行征信助贷模式报送贷款申请数据, isReadFile: {} , handApplys: {} "
,
isReadFile
,
JSON
.
toJSONString
(
handApplys
));
for
(
int
i
=
0
;
i
<
handApplys
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
handApplys
.
size
();
i
++){
//try {
//try {
ApplyLoanInfoZhuDai
applyInfo
=
new
Gson
().
fromJson
(
handApplys
.
get
(
i
),
new
TypeToken
<
ApplyLoanInfoZhuDai
>(){}.
getType
());
ApplyLoanInfoZhuDai
applyInfo
=
new
Gson
().
fromJson
(
handApplys
.
get
(
i
),
new
TypeToken
<
ApplyLoanInfoZhuDai
>(){}.
getType
());
...
@@ -389,9 +400,20 @@ public class BaiHangZhuDaiService {
...
@@ -389,9 +400,20 @@ public class BaiHangZhuDaiService {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.29 <br/>
* 创建时间: 2019.10.29 <br/>
*/
*/
public
void
sendHandLoaInfoReportToBaiHang
()
throws
Exception
{
public
void
sendHandLoaInfoReportToBaiHang
(
boolean
isReadFile
,
List
<
String
>
paramJsonStr
)
throws
Exception
{
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
List
<
String
>
handLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD2DataUrl
),
"utf-8"
);
List
<
String
>
handLoanInfos
=
null
;
if
(
isReadFile
){
handLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD2DataUrl
),
"utf-8"
);
}
else
{
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
log
.
warn
(
"百行征信助贷模式报送放款数据错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
return
;
}
else
{
handLoanInfos
=
paramJsonStr
;
}
}
log
.
info
(
"百行征信助贷模式报送放款数据, {}"
,
JSON
.
toJSONString
(
handLoanInfos
));
log
.
info
(
"百行征信助贷模式报送放款数据, {}"
,
JSON
.
toJSONString
(
handLoanInfos
));
for
(
int
i
=
0
;
i
<
handLoanInfos
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
handLoanInfos
.
size
();
i
++){
...
@@ -448,11 +470,21 @@ public class BaiHangZhuDaiService {
...
@@ -448,11 +470,21 @@ public class BaiHangZhuDaiService {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.29 <br/>
* 创建时间: 2019.10.29 <br/>
*/
*/
public
void
sendHandRepaymentReportToBaiHang1
()
throws
Exception
{
public
void
sendHandRepaymentReportToBaiHang1
(
boolean
isReadFile
,
List
<
String
>
paramJsonStr
)
throws
Exception
{
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
Stopwatch
sendWatch
=
Stopwatch
.
createStarted
();
List
<
String
>
repaymentLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD3DataUrl
),
"utf-8"
);
List
<
String
>
repaymentLoanInfos
=
null
;
//try {
if
(
isReadFile
){
repaymentLoanInfos
=
FileUtils
.
readLines
(
new
File
(
baihangHandD3DataUrl
),
"utf-8"
);
}
else
{
if
(
paramJsonStr
==
null
||
paramJsonStr
.
size
()==
0
){
log
.
warn
(
"百行征信助贷模式报送还款数据错误, paramJsonStr is Null , isReadFile: {} "
,
isReadFile
);
return
;
}
else
{
repaymentLoanInfos
=
paramJsonStr
;
}
}
//try {
log
.
info
(
"百行征信助贷模式报送还款数据, {}"
,
JSON
.
toJSONString
(
repaymentLoanInfos
));
log
.
info
(
"百行征信助贷模式报送还款数据, {}"
,
JSON
.
toJSONString
(
repaymentLoanInfos
));
for
(
int
i
=
0
;
i
<
repaymentLoanInfos
.
size
();
i
++){
for
(
int
i
=
0
;
i
<
repaymentLoanInfos
.
size
();
i
++){
RepaymentInfoZhuDai
repaymentLoanInfo
=
new
Gson
().
fromJson
(
repaymentLoanInfos
.
get
(
i
),
new
TypeToken
<
RepaymentInfoZhuDai
>(){}.
getType
());
RepaymentInfoZhuDai
repaymentLoanInfo
=
new
Gson
().
fromJson
(
repaymentLoanInfos
.
get
(
i
),
new
TypeToken
<
RepaymentInfoZhuDai
>(){}.
getType
());
...
...
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