Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cash-loan-flow-boss
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
cash-loan-flow-boss
Commits
3de1cc33
Commit
3de1cc33
authored
Jan 08, 2020
by
shangying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次风控接口不ok
parent
833c5326
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
LoanOperationServiceImpl.java
...i/oneclickdata/service/impl/LoanOperationServiceImpl.java
+15
-3
SelectCreditStatusJobNew.java
...oanflowboss/spi/job/service/SelectCreditStatusJobNew.java
+1
-1
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/api/oneclickdata/service/impl/LoanOperationServiceImpl.java
View file @
3de1cc33
...
@@ -6,6 +6,7 @@ import cn.quantgroup.cashloanflowboss.api.oneclickdata.model.ResposeResultEnum;
...
@@ -6,6 +6,7 @@ import cn.quantgroup.cashloanflowboss.api.oneclickdata.model.ResposeResultEnum;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.repository.OneClickDataRespository
;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.repository.OneClickDataRespository
;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.service.FundsAllocationplanService
;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.service.FundsAllocationplanService
;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.service.LoanOperationService
;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.service.LoanOperationService
;
import
cn.quantgroup.cashloanflowboss.api.oneclickdata.service.PhoneInfoService
;
import
cn.quantgroup.cashloanflowboss.core.base.Result
;
import
cn.quantgroup.cashloanflowboss.core.base.Result
;
import
cn.quantgroup.cashloanflowboss.spi.clf.model.LoanProgress
;
import
cn.quantgroup.cashloanflowboss.spi.clf.model.LoanProgress
;
import
cn.quantgroup.cashloanflowboss.spi.xyqb.entity.LoanApplicationHistory
;
import
cn.quantgroup.cashloanflowboss.spi.xyqb.entity.LoanApplicationHistory
;
...
@@ -43,6 +44,8 @@ public class LoanOperationServiceImpl implements LoanOperationService{
...
@@ -43,6 +44,8 @@ public class LoanOperationServiceImpl implements LoanOperationService{
private
LoanOperationService
loanOperationService
;
private
LoanOperationService
loanOperationService
;
@Autowired
@Autowired
private
FundsAllocationplanService
fundsAllocationplanService
;
private
FundsAllocationplanService
fundsAllocationplanService
;
@Autowired
private
PhoneInfoService
phoneInfoService
;
@Value
(
"${opapi.http.net}"
)
@Value
(
"${opapi.http.net}"
)
private
String
opapiHttp
;
private
String
opapiHttp
;
@Value
(
"${clotho.http.net}"
)
@Value
(
"${clotho.http.net}"
)
...
@@ -64,7 +67,7 @@ public class LoanOperationServiceImpl implements LoanOperationService{
...
@@ -64,7 +67,7 @@ public class LoanOperationServiceImpl implements LoanOperationService{
* 二次风控
* 二次风控
* */
* */
@Override
@Override
public
JSONObject
orderAuditNotify
(
OneClickData
oneClickData
)
{
public
JSONObject
orderAuditNotify
(
OneClickData
oneClickData
)
{
String
url
=
clothoHttp
+
"/external/quota/order_audit/notify"
;
String
url
=
clothoHttp
+
"/external/quota/order_audit/notify"
;
Map
<
String
,
String
>
paras
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
paras
=
new
HashMap
<
String
,
String
>();
paras
.
put
(
"code"
,
"0"
);
paras
.
put
(
"code"
,
"0"
);
...
@@ -77,7 +80,14 @@ public class LoanOperationServiceImpl implements LoanOperationService{
...
@@ -77,7 +80,14 @@ public class LoanOperationServiceImpl implements LoanOperationService{
paras
.
put
(
"deadLine"
,
"1548518400"
);
paras
.
put
(
"deadLine"
,
"1548518400"
);
Map
<
String
,
String
>
header
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
header
=
new
HashMap
<
String
,
String
>();
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
header
.
put
(
"Content-Type"
,
"application/x-www-form-urlencoded"
);
header
.
put
(
"x-auth-token"
,
oneClickData
.
getToken
());
String
token
=
""
;
try
{
token
=
phoneInfoService
.
getToken
(
oneClickData
.
getPhone
(),
oneClickData
.
getChannelCode
());
}
catch
(
Exception
e
){
log
.
info
(
"获取token进入异常={}"
,
e
);
}
header
.
put
(
"x-auth-token"
,
token
);
log
.
info
(
"打印当前的二次风控paras={},header={},url={}"
,
paras
,
header
,
url
);
log
.
info
(
"打印当前的二次风控paras={},header={},url={}"
,
paras
,
header
,
url
);
JSONObject
result
=
HttpRequest
.
doPostReturnResponseJson
(
url
,
paras
,
header
);
JSONObject
result
=
HttpRequest
.
doPostReturnResponseJson
(
url
,
paras
,
header
);
...
@@ -87,10 +97,12 @@ public class LoanOperationServiceImpl implements LoanOperationService{
...
@@ -87,10 +97,12 @@ public class LoanOperationServiceImpl implements LoanOperationService{
@Override
@Override
public
boolean
updatContractStatus
(
OneClickData
oneClickData
)
{
public
boolean
updatContractStatus
(
OneClickData
oneClickData
)
{
boolean
boo
=
true
;
boolean
boo
=
true
;
log
.
info
(
"合同idOneClickData={}"
,
oneClickData
);
int
num
=
xyqbCenterService
.
updateContractStatus
(
Long
.
valueOf
(
oneClickData
.
getUserId
()),
2
,
Long
.
valueOf
(
oneClickData
.
getLoanId
()));
int
num
=
xyqbCenterService
.
updateContractStatus
(
Long
.
valueOf
(
oneClickData
.
getUserId
()),
2
,
Long
.
valueOf
(
oneClickData
.
getLoanId
()));
if
(
num
>
0
){
if
(
num
>
0
){
log
.
info
(
"修改合同成功"
);
}
else
{
}
else
{
log
.
info
(
"修改合同失败"
);
boo
=
false
;
boo
=
false
;
}
}
...
...
src/main/java/cn/quantgroup/cashloanflowboss/spi/job/service/SelectCreditStatusJobNew.java
View file @
3de1cc33
...
@@ -19,7 +19,7 @@ public class SelectCreditStatusJobNew {
...
@@ -19,7 +19,7 @@ public class SelectCreditStatusJobNew {
oneClickDataOperateJobService
.
excuteSelectCreditStatusJob
();
oneClickDataOperateJobService
.
excuteSelectCreditStatusJob
();
}
}
@Scheduled
(
cron
=
"0 0/
1
* * * ?"
)
@Scheduled
(
cron
=
"0 0/
2
* * * ?"
)
public
void
executeFund
()
{
public
void
executeFund
()
{
System
.
out
.
print
(
"状态是21尚未成功放款的到哪"
);
System
.
out
.
print
(
"状态是21尚未成功放款的到哪"
);
oneClickDataOperateJobService
.
excuteFundJob
();
oneClickDataOperateJobService
.
excuteFundJob
();
...
...
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