Commit 74657651 authored by 黎博's avatar 黎博

修改vcc授信回调逻辑

parent 681734eb
...@@ -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("该用户不存在!");
......
...@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment