Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
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
QA
qa-platform
Commits
74657651
Commit
74657651
authored
May 12, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改vcc授信回调逻辑
parent
681734eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
VccQueryController.java
...g/qaplatform/zdata/controller/vcc/VccQueryController.java
+1
-1
VccDataServiceImpl.java
...qaplatform/zdata/service/vcc/impl/VccDataServiceImpl.java
+6
-0
No files found.
src/main/java/cn/qg/qaplatform/zdata/controller/vcc/VccQueryController.java
View file @
74657651
...
@@ -40,7 +40,7 @@ public class VccQueryController {
...
@@ -40,7 +40,7 @@ public class VccQueryController {
}
}
@GetMapping
(
"/checkData"
)
@GetMapping
(
"/checkData"
)
public
JsonResult
checkUserData
(
String
namespace
,
String
phoneNo
,
String
idCardNo
)
{
public
JsonResult
checkUserData
(
String
namespace
,
String
phoneNo
)
{
VccUserEntity
vccUserEntity
=
vccDataService
.
queryUserVccStatus
(
namespace
,
phoneNo
);
VccUserEntity
vccUserEntity
=
vccDataService
.
queryUserVccStatus
(
namespace
,
phoneNo
);
if
(
vccUserEntity
==
null
)
{
if
(
vccUserEntity
==
null
)
{
return
JsonResult
.
serverFailed
(
"该用户不存在!"
);
return
JsonResult
.
serverFailed
(
"该用户不存在!"
);
...
...
src/main/java/cn/qg/qaplatform/zdata/service/vcc/impl/VccDataServiceImpl.java
View file @
74657651
...
@@ -187,9 +187,15 @@ public class VccDataServiceImpl implements VccDataService {
...
@@ -187,9 +187,15 @@ public class VccDataServiceImpl implements VccDataService {
public
Boolean
vccManualRiskControl
(
String
namespace
,
String
phoneNo
,
Boolean
result
,
Integer
amount
)
{
public
Boolean
vccManualRiskControl
(
String
namespace
,
String
phoneNo
,
Boolean
result
,
Integer
amount
)
{
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"xyqb_user"
);
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"xyqb_user"
);
XjfqGenProcessVo
xjfqGenProcessVo
=
xyqbLoanDataMapper
.
getUserInfoByPhoneNo
(
phoneNo
);
XjfqGenProcessVo
xjfqGenProcessVo
=
xyqbLoanDataMapper
.
getUserInfoByPhoneNo
(
phoneNo
);
if
(
xjfqGenProcessVo
==
null
)
{
return
false
;
}
String
uuid
=
xjfqGenProcessVo
.
getUuid
();
String
uuid
=
xjfqGenProcessVo
.
getUuid
();
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"vcc_talos"
);
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"vcc_talos"
);
Map
<
String
,
Object
>
riskRecord
=
vccDataMapper
.
getVccRiskRecord
(
uuid
);
Map
<
String
,
Object
>
riskRecord
=
vccDataMapper
.
getVccRiskRecord
(
uuid
);
if
(
riskRecord
==
null
)
{
return
false
;
}
String
riskNo
=
riskRecord
.
get
(
"risk_no"
).
toString
();
String
riskNo
=
riskRecord
.
get
(
"risk_no"
).
toString
();
JSONObject
creditResult
=
Vcc
.
vccWindControlCreditCallback
(
namespace
,
uuid
,
riskNo
,
result
,
amount
);
JSONObject
creditResult
=
Vcc
.
vccWindControlCreditCallback
(
namespace
,
uuid
,
riskNo
,
result
,
amount
);
return
creditResult
.
get
(
"content"
).
toString
().
equals
(
"success"
);
return
creditResult
.
get
(
"content"
).
toString
().
equals
(
"success"
);
...
...
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