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
69373a01
Commit
69373a01
authored
Oct 25, 2019
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次风控审批
parent
0a3a4798
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
JolyneServiceImpl.java
...tgroup/cashloanflowboss/spi/jolyne/JolyneServiceImpl.java
+7
-6
No files found.
src/main/java/cn/quantgroup/cashloanflowboss/spi/jolyne/JolyneServiceImpl.java
View file @
69373a01
...
@@ -47,24 +47,25 @@ public class JolyneServiceImpl implements JolyneService {
...
@@ -47,24 +47,25 @@ public class JolyneServiceImpl implements JolyneService {
public
String
delayUpdateWaitingXyqbSql
(
Long
loanId
,
Long
delayTime
)
{
public
String
delayUpdateWaitingXyqbSql
(
Long
loanId
,
Long
delayTime
)
{
WaitingFundingCorpOperatePeople
waitingFundingCorpOperatePeople
=
xyqbCenterService
.
findWaitingFundingCorpOperatePeopleByLoanId
(
loanId
);
WaitingFundingCorpOperatePeople
waitingFundingCorpOperatePeople
=
null
;
LoanApplicationHistory
loanApplicationHistory
;
int
i
=
0
;
int
i
=
0
;
while
(
waitingFundingCorpOperatePeople
=
=
null
)
{
while
(
waitingFundingCorpOperatePeople
!
=
null
)
{
try
{
try
{
Thread
.
sleep
(
delayTime
);
Thread
.
sleep
(
delayTime
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
LoanApplicationHistory
loanApplicationHistory
=
xyqbCenterService
.
findLoanApplicationHistoryById
(
loanId
);
loanApplicationHistory
=
xyqbCenterService
.
findLoanApplicationHistoryById
(
loanId
);
if
(
loanApplicationHistory
!=
null
&&
LoanProgress
.
WAITING_FUND
.
equals
(
loanApplicationHistory
.
getProgress
()))
{
if
(
loanApplicationHistory
!=
null
&&
LoanProgress
.
WAITING_FUND
.
equals
(
loanApplicationHistory
.
getProgress
()))
{
// loan 状态是20
改变 waitingFundingCorpOperatePeople 创建时间
// loan 状态是20
查询 waitingFundingCorpOperatePeople
waitingFundingCorpOperatePeople
=
xyqbCenterService
.
findWaitingFundingCorpOperatePeopleByLoanId
(
loanId
);
waitingFundingCorpOperatePeople
=
xyqbCenterService
.
findWaitingFundingCorpOperatePeopleByLoanId
(
loanId
);
break
;
break
;
}
}
if
(++
i
>
5
0000
)
{
if
(++
i
>
2
0000
)
{
return
"fail"
;
return
"fail"
;
}
}
}
}
...
@@ -73,7 +74,7 @@ public class JolyneServiceImpl implements JolyneService {
...
@@ -73,7 +74,7 @@ public class JolyneServiceImpl implements JolyneService {
// 更新待放款时间(5分钟之前)
// 更新待放款时间(5分钟之前)
ArrayList
<
String
>
updateWaitingFundingCorpOperatePeople
=
Lists
.
newArrayList
();
ArrayList
<
String
>
updateWaitingFundingCorpOperatePeople
=
Lists
.
newArrayList
();
updateWaitingFundingCorpOperatePeople
.
add
(
"update waiting_funding_corp_operate_people set created_at = DATE_SUB(created_at, interval 5 minute) where loan_application_history_id = "
+
loanId
+
";"
);
updateWaitingFundingCorpOperatePeople
.
add
(
"update waiting_funding_corp_operate_people set created_at = DATE_SUB(created_at, interval 5 minute) where loan_application_history_id = "
+
loanId
+
";"
);
return
this
.
executeSQL
(
JolyneDB
.
XYQB
,
JolyneUtil
.
getJolneSql
(
updateWaitingFundingCorpOperatePeople
));
this
.
executeSQL
(
JolyneDB
.
XYQB
,
JolyneUtil
.
getJolneSql
(
updateWaitingFundingCorpOperatePeople
));
}
}
try
{
try
{
...
...
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