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
44bdcc8e
Commit
44bdcc8e
authored
Nov 15, 2019
by
haoyanhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
方法整理&优化
parent
ff2b8787
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
97 deletions
+105
-97
ExZhuDaiBaiHangReSendController.java
.../controller/external/ExZhuDaiBaiHangReSendController.java
+85
-80
BaiHangZhuDaiService.java
...antgroup/report/service/baihang/BaiHangZhuDaiService.java
+20
-17
No files found.
src/main/java/cn/quantgroup/report/controller/external/ExZhuDaiBaiHangReSendController.java
View file @
44bdcc8e
...
@@ -43,11 +43,11 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -43,11 +43,11 @@ public class ExZhuDaiBaiHangReSendController {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.23 <br/>
* 创建时间: 2019.10.23 <br/>
*/
*/
@RequestMapping
(
"/manual/build/zhudai/stockLoanInfo"
)
/*
@RequestMapping("/manual/build/zhudai/stockLoanInfo")
public GlobalResponse stockLoanInfoZhuDai(String startDate, String noEndDate){
public GlobalResponse stockLoanInfoZhuDai(String startDate, String noEndDate){
String msg = baiHangZhuDaiService.stockLoanInfoZhuDai(startDate,noEndDate);
String msg = baiHangZhuDaiService.stockLoanInfoZhuDai(startDate,noEndDate);
return GlobalResponse.generate(msg);
return GlobalResponse.generate(msg);
}
}
*/
/**
/**
* 描述: 百行-助贷还款&逾期存量数据 整理 <br/>
* 描述: 百行-助贷还款&逾期存量数据 整理 <br/>
...
@@ -56,11 +56,11 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -56,11 +56,11 @@ public class ExZhuDaiBaiHangReSendController {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.23 <br/>
* 创建时间: 2019.10.23 <br/>
*/
*/
@RequestMapping
(
"/manual/build/zhudai/stockRepayMentInfo"
)
/*
@RequestMapping("/manual/build/zhudai/stockRepayMentInfo")
public GlobalResponse stockRepayMentInfoZhuDai(String startDate, String noEndDate){
public GlobalResponse stockRepayMentInfoZhuDai(String startDate, String noEndDate){
String msg = baiHangZhuDaiService.stockRepayMentInfoZhuDai(startDate,noEndDate);
String msg = baiHangZhuDaiService.stockRepayMentInfoZhuDai(startDate,noEndDate);
return GlobalResponse.generate(msg);
return GlobalResponse.generate(msg);
}
}
*/
/**
/**
* 描述: 百行-助贷申请存量数据 整理 <br/>
* 描述: 百行-助贷申请存量数据 整理 <br/>
...
@@ -69,12 +69,61 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -69,12 +69,61 @@ public class ExZhuDaiBaiHangReSendController {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.28 <br/>
* 创建时间: 2019.10.28 <br/>
*/
*/
@RequestMapping
(
"/manual/build/zhudai/stockApplyInfo"
)
/*
@RequestMapping("/manual/build/zhudai/stockApplyInfo")
public GlobalResponse stockApplyInfoZhuDai(String startDate, String noEndDate){
public GlobalResponse stockApplyInfoZhuDai(String startDate, String noEndDate){
String msg = baiHangZhuDaiService.stockApplyLoanInfoZhuDai(startDate,noEndDate);
String msg = baiHangZhuDaiService.stockApplyLoanInfoZhuDai(startDate,noEndDate);
return GlobalResponse.generate(msg);
return GlobalResponse.generate(msg);
}*/
//存量整理公共方法
@RequestMapping
(
"/manual/build/zhuDaiStockSyn"
)
public
String
zhuDaiStockSyn
(
String
type
,
String
startDate
,
String
noEndDate
)
{
if
(
StringUtils
.
isAnyBlank
(
type
,
startDate
,
noEndDate
))
{
return
"参数为空"
;
}
startDate
=
startDate
+
"T00:00:00"
;
noEndDate
=
noEndDate
+
"T00:00:00"
;
baiHangZhuDaiService
.
zhuDaiStockSyn
(
type
,
startDate
,
noEndDate
);
return
"请求type="
+
type
+
",startDate="
+
startDate
+
",noEndDate="
+
noEndDate
+
",调度结束"
;
}
//存量异步整理停止方法
@RequestMapping
(
"/manual/build/zhuDaiStockStop"
)
public
String
zhuDaiStockStop
(
String
type
,
String
value
)
{
if
(
StringUtils
.
isAnyBlank
(
type
))
{
return
"参数为空"
;
}
boolean
val
=
false
;
if
(
StringUtils
.
isNotBlank
(
value
)
&&
"true"
.
equals
(
value
)){
val
=
true
;
}
return
baiHangZhuDaiService
.
zhuDaiStockStop
(
type
,
val
);
}
}
//文件报送压缩加密、解密
@RequestMapping
(
"/manual/dealWithFileCry"
)
public
String
dealWithFileCry
(
String
filePath
,
String
type
)
{
try
{
//"2019-05-07T00:00:00"
if
(
StringUtils
.
isAnyBlank
(
filePath
,
type
))
{
return
"参数为空"
;
}
if
(
"zip"
.
equalsIgnoreCase
(
type
))
{
return
baiHangZhuDaiService
.
fileUploadClient
(
filePath
);
}
else
if
(
"unzip"
.
equalsIgnoreCase
(
type
))
{
return
baiHangZhuDaiService
.
fileUploadValidationClient
(
filePath
);
}
else
{
return
"其他未知类型type="
+
type
;
}
}
catch
(
Exception
e
)
{
log
.
error
(
"dealWithFileCry异常, {} , {} "
,
e
.
getMessage
(),
e
);
return
e
.
getMessage
();
}
}
//---------------------------------------------------------------------
//---------------------------------------------------------------------
/**
/**
...
@@ -84,7 +133,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -84,7 +133,7 @@ public class ExZhuDaiBaiHangReSendController {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.29 <br/>
* 创建时间: 2019.10.29 <br/>
*/
*/
@RequestMapping
(
"/manual/mainApplySend"
)
@RequestMapping
(
"/manual/
buquan/
mainApplySend"
)
public
GlobalResponse
mainApplySend
(){
public
GlobalResponse
mainApplySend
(){
try
{
try
{
baiHangZhuDaiService
.
sendHandApplyToBaiHang
(
true
,
null
);
baiHangZhuDaiService
.
sendHandApplyToBaiHang
(
true
,
null
);
...
@@ -102,7 +151,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -102,7 +151,7 @@ public class ExZhuDaiBaiHangReSendController {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.29 <br/>
* 创建时间: 2019.10.29 <br/>
*/
*/
@RequestMapping
(
"/manual/mainLoanInfoSend"
)
@RequestMapping
(
"/manual/
buquan/
mainLoanInfoSend"
)
public
GlobalResponse
mainLoanInfoSend
(){
public
GlobalResponse
mainLoanInfoSend
(){
try
{
try
{
baiHangZhuDaiService
.
sendHandLoaInfoReportToBaiHang
(
true
,
null
);
baiHangZhuDaiService
.
sendHandLoaInfoReportToBaiHang
(
true
,
null
);
...
@@ -120,7 +169,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -120,7 +169,7 @@ public class ExZhuDaiBaiHangReSendController {
* 创建人: yanhui.Hao <br/>
* 创建人: yanhui.Hao <br/>
* 创建时间: 2019.10.29 <br/>
* 创建时间: 2019.10.29 <br/>
*/
*/
@RequestMapping
(
"/manual/mainRepaymentLoanInfo"
)
@RequestMapping
(
"/manual/
buquan/
mainRepaymentLoanInfo"
)
public
GlobalResponse
mainRepaymentLoanInfo
(){
public
GlobalResponse
mainRepaymentLoanInfo
(){
try
{
try
{
baiHangZhuDaiService
.
sendHandRepaymentReportToBaiHang1
(
true
,
null
);
baiHangZhuDaiService
.
sendHandRepaymentReportToBaiHang1
(
true
,
null
);
...
@@ -131,32 +180,14 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -131,32 +180,14 @@ public class ExZhuDaiBaiHangReSendController {
}
}
}
}
//---------------------------------------------------------------------------
/**
* 描述: 因数据同步失败,根据报送时间天,手动调用,报送一整天所有数据 <br/>
//test1.场景测试 数据进行脱敏
* 参数: [] <br/>
/* @RequestMapping("/test/dataTuoMin")
* 返回值: cn.quantgroup.report.response.GlobalResponse <br/>
public String dataTuoMin(String type,String jsonFilePath) {
* 创建人: yanhui.Hao <br/>
try{
* 创建时间: 2019.10.29 <br/>
return baiHangZhuDaiService.dataTuoMin(type,jsonFilePath);
*/
}catch (Exception e){
@RequestMapping
(
"/manual/scheduledSend"
)
log.error("dataTuoMin异常, {} , {} ", e.getMessage(), e);
return e.getMessage();
}
}*/
//test2.接口测试 手动调用
@RequestMapping
(
"/test/apiSend"
)
public
String
apiSend
(
String
type
,
String
startDate
,
String
endDate
)
{
try
{
return
baiHangZhuDaiService
.
apiSend
(
type
,
startDate
,
endDate
);
}
catch
(
Exception
e
){
log
.
error
(
"dataTuoMin异常, {} , {} "
,
e
.
getMessage
(),
e
);
return
e
.
getMessage
();
}
}
//test3.接口测试 手动调用
@RequestMapping
(
"/test/scheduled"
)
public
String
scheduledSend
(
String
type
,
String
startDate
,
String
endDate
)
{
public
String
scheduledSend
(
String
type
,
String
startDate
,
String
endDate
)
{
try
{
try
{
//"2019-05-07T00:00:00"
//"2019-05-07T00:00:00"
...
@@ -193,58 +224,31 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -193,58 +224,31 @@ public class ExZhuDaiBaiHangReSendController {
return
type
+
"手动报送结束"
;
return
type
+
"手动报送结束"
;
}
}
//test3.接口测试 手动调用
//---------------------------------------------------------------------------
@RequestMapping
(
"/manual/dealWithFileCry"
)
public
String
dealWithFileCry
(
String
filePath
,
String
type
)
{
try
{
//"2019-05-07T00:00:00"
if
(
StringUtils
.
isAnyBlank
(
filePath
,
type
))
{
return
"参数为空"
;
}
if
(
"zip"
.
equalsIgnoreCase
(
type
))
{
return
baiHangZhuDaiService
.
fileUploadClient
(
filePath
);
}
else
if
(
"unzip"
.
equalsIgnoreCase
(
type
))
{
return
baiHangZhuDaiService
.
fileUploadValidationClient
(
filePath
);
}
else
{
//test1.场景测试 数据进行脱敏
return
"其他未知类型type="
+
type
;
/* @RequestMapping("/test/dataTuoMin")
}
public String dataTuoMin(String type,String jsonFilePath) {
}
catch
(
Exception
e
)
{
try{
log
.
error
(
"dealWithFileCry异常, {} , {} "
,
e
.
getMessage
(),
e
);
return baiHangZhuDaiService.dataTuoMin(type,jsonFilePath);
}catch (Exception e){
log.error("dataTuoMin异常, {} , {} ", e.getMessage(), e);
return e.getMessage();
return e.getMessage();
}
}
}
}*/
@RequestMapping
(
"/manual/build/zhuDaiStockSyn"
)
public
String
zhuDaiStockSyn
(
String
type
,
String
startDate
,
String
noEndDate
)
{
if
(
StringUtils
.
isAnyBlank
(
type
,
startDate
,
noEndDate
))
{
return
"参数为空"
;
}
startDate
=
startDate
+
"T00:00:00"
;
noEndDate
=
noEndDate
+
"T00:00:00"
;
baiHangZhuDaiService
.
zhuDaiStockSyn
(
type
,
startDate
,
noEndDate
);
return
"请求type="
+
type
+
",startDate="
+
startDate
+
",noEndDate="
+
noEndDate
+
",调度结束"
;
}
@RequestMapping
(
"/manual/build/zhuDaiStockStop"
)
//test2.接口测试 手动调用
public
String
zhuDaiStockStop
(
String
type
,
String
value
)
{
@RequestMapping
(
"/test/apiSend"
)
if
(
StringUtils
.
isAnyBlank
(
type
)
)
{
public
String
apiSend
(
String
type
,
String
startDate
,
String
endDate
)
{
return
"参数为空"
;
try
{
}
return
baiHangZhuDaiService
.
apiSend
(
type
,
startDate
,
endDate
);
boolean
val
=
false
;
}
catch
(
Exception
e
){
if
(
StringUtils
.
isNotBlank
(
value
)
&&
"true"
.
equals
(
value
)){
log
.
error
(
"dataTuoMin异常, {} , {} "
,
e
.
getMessage
(),
e
);
val
=
true
;
return
e
.
getMessage
()
;
}
}
return
baiHangZhuDaiService
.
zhuDaiStockStop
(
type
,
val
);
}
}
//test
@RequestMapping
(
"/test/bulidD3"
)
@RequestMapping
(
"/test/bulidD3"
)
public
String
bulidD3
(
String
type
,
String
jsonFile
)
{
public
String
bulidD3
(
String
type
,
String
jsonFile
)
{
try
{
try
{
...
@@ -255,6 +259,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -255,6 +259,7 @@ public class ExZhuDaiBaiHangReSendController {
}
}
}
}
//test
@RequestMapping
(
"/test/bulidD2"
)
@RequestMapping
(
"/test/bulidD2"
)
public
GlobalResponse
bulidD2
(
String
jsonFile
){
public
GlobalResponse
bulidD2
(
String
jsonFile
){
try
{
try
{
...
@@ -276,7 +281,7 @@ public class ExZhuDaiBaiHangReSendController {
...
@@ -276,7 +281,7 @@ public class ExZhuDaiBaiHangReSendController {
}
}
}
}
//test
@RequestMapping
(
"/test/bulidA1"
)
@RequestMapping
(
"/test/bulidA1"
)
public
GlobalResponse
bulidA1
(
String
jsonFile
){
public
GlobalResponse
bulidA1
(
String
jsonFile
){
try
{
try
{
...
...
src/main/java/cn/quantgroup/report/service/baihang/BaiHangZhuDaiService.java
View file @
44bdcc8e
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